Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rescue_from :all documentation fix #1725

Merged
merged 4 commits into from
Jan 1, 2018

Conversation

Jelkster
Copy link
Contributor

Addresses rescue_from :all documentation aspect of #1713

Since `rescue_from` only rescues `StandardError` exceptions, rescuing `NotImplementedError` will have no effect as it is a `ScriptError` instead of `StandardError`.
Added another spec to demonstrate current behavior when attempting to rescue from a non-StandardError exception. As of now, rescue_from :all only rescues StandardError exceptions, so when a non-StandardError exception is encountered, Grape will not trap the error.
@grape-bot
Copy link

grape-bot commented Dec 31, 2017

1 Message
📖 We really appreciate pull requests that demonstrate issues, even without a fix. That said, the next step is to try and fix the failing tests!

Generated by 🚫 danger

@dblock dblock merged commit fda88b5 into ruby-grape:master Jan 1, 2018
@dblock
Copy link
Member

dblock commented Jan 1, 2018

Merged, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants