Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add descriptive message for unexpected DSL exceptions
Currently, when a DSL compiler raises an error while running a `decorate` operation, it is not very obvious which compiler failed and during the processing of which constant. The failing DSL compiler is kind of obvious if one looks at the backtrace, but the constant that it is failing on is very hard to understand if one is not running DSL generation in verbose mode. This PR handles unexpected exceptions, shows a friendly error message for them and re-raises the exception to keep the current behaviour.
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 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