Improved file-related error messages by using the new