-
Notifications
You must be signed in to change notification settings - Fork 928
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Custom error messages for IO with nonexistent files (#14662)
Closes #12311; closes #9564 We return a somewhat cryptic error when opening a file that does not exist: "Cannot query file size". With this change, we report whether the file exists, or, if the file does exist, what the errno value is after `open`. Also added a check for the output files' directory in `file_sink`. This check is now also included in `file_wrapper`, just in case initialization order changes at some point. Now we should always correctly report missing output file directory and missing input files. Authors: - Vukasin Milovanovic (https://github.com/vuule) Approvers: - Nghia Truong (https://github.com/ttnghia) - Karthikeyan (https://github.com/karthikeyann) URL: #14662
- Loading branch information
Showing
3 changed files
with
42 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters