-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
configy: Catch and re-throw validation errors
The documentation states: > If validation of individual fields is not enough and the section as > a whole needs to be validated, one can implement a void validate() > const method which throws an exception in the even of a validation > failure. **The library will rethrow this Exception with the > file/line information pointing to the section itself, and not any > individual field.** The emphasized section was not actually implemented - exceptions thrown from validate() functions bubbled up to the top level and were printed without any context. Fix this by implementing the functionality.
- Loading branch information
1 parent
384a064
commit 995330a
Showing
2 changed files
with
22 additions
and
1 deletion.
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