We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Proper settings for capturing inside the popular API gem "Grape" for Rails applications to capture 500s
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
The text was updated successfully, but these errors were encountered:
Closed via #679
Sorry, something went wrong.
rivkahstandig3636
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: