-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename and extend
ValidateError
. (#102)
We now need to conduct I/O during `parse_configuration`, which means the current `ValidateError` isn't quite enough. I've renamed it to `ParseError` (to complement `parse_configuration`), and added a few extra cases. 1. `ParseError`, which denotes the file path and position where parsing failed. 2. `ValidateError`, as before, but including the file path, wrapping the vector in `InvalidNodes` so we can implement `Display`. 3. `IoError`, for when we fail to read a file. 4. `Other`, because I can't think of everything.
- Loading branch information
1 parent
d0765f8
commit 42b3cfa
Showing
2 changed files
with
80 additions
and
10 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