-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rack::JSONBodyParser: rescue all parser exceptions (#184)
Rescue all exceptions raised by the parser as long as it is StandardError subclass (which should be all the exceptions raised by different libraries). This is specially needed when using a parser other than JSON. Otherwise we need to rescue the corresponding exception and raise JSON:ParseError inside the block. Co-authored-by: Juan Manuel Cuello <[email protected]> Co-authored-by: Samuel Williams <[email protected]>
- Loading branch information
1 parent
a9cd089
commit 599f768
Showing
2 changed files
with
22 additions
and
2 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