Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix JSONizing exceptions, spotted by Garland_g[m]++
When running with RAKUDO_EXCEPTIONS_HANDLER=JSON, any Exception that contains another Exception as one of the attributes, would throw. And since we apparently don't have a CATCHer there, would give a very LTA error message. Fixed by moving the JSONizing of an Exception to Rakudo::Internals::JSON, so it can recursively handle itself. And adapt the exception handling in Exception accordingly.
- Loading branch information
Showing
2 changed files
with
31 additions
and
12 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