-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better error message when Table.read cannot open the file (#159)
Our current error message on `Table.read` not being able top open/read file is not helpful. Reason is two-fold: 1) the error pretty printing call was missing an argument, so we got error-formetting-error instead of actual error; 2) the actual error wouldn't be helpful anyway -- we ignored the actual error with reading file (that can be caused by wrong permission settings or wrong path), because we expect failure possibility when trying to match proper parser for given file. Now not being able to read file is a special class of errors that stop the parser-matching routine and allow to give proper diagnostics to the user.
- Loading branch information
Showing
4 changed files
with
34 additions
and
7 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
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