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

Add docs for using Grape with rollbar-gem #645

Closed
and-megan opened this issue Oct 24, 2017 · 1 comment
Closed

Add docs for using Grape with rollbar-gem #645

and-megan opened this issue Oct 24, 2017 · 1 comment

Comments

@and-megan
Copy link
Contributor

Proper settings for capturing inside the popular API gem "Grape" for Rails applications to capture 500s

global exception handler, used for error notifications

rescue_from :all do |e|
if Rails.env.development?
raise e
else
Rollbar.error(e)
error_response(message: "Internal server error", status: 500)
end
end

@rivkahstandig3636
Copy link
Contributor

Closed via #679

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

No branches or pull requests

3 participants