-
Notifications
You must be signed in to change notification settings - Fork 0
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
HOTT-4629: Improve exception handling #1769
Conversation
… HOTT-4629-error-controller # Conflicts: # app/controllers/errors_controller.rb
d858855
to
a8f9b13
Compare
55d56ad
to
df28667
Compare
# Show full error reports and disable caching. | ||
config.consider_all_requests_local = true | ||
config.consider_all_requests_local = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The application will render the public error pages instead of detailed debug information.
Removed redundant views for error messages (reusing error.html.erb) Support more errors in the routes.
df28667
to
77b4cd9
Compare
@@ -0,0 +1,51 @@ | |||
RSpec.describe ApplicationController, type: :request do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reconsidered the usefulness of these specs.
We can remove these. We are just (re)testing the mappings in the rails actionpack/lib/action_dispatch/middleware/exception_wrapper.rb are correct.
The useful tests are the spec/requests/errors_controller_spec.rb
,
since the tests the routes and the rendered views.
Set consider_all_requests_local to true on Dev (to see detailed error reports).
49c24cf
to
5445c5f
Compare
Jira link
HOTT-4629
What?
I have added/removed/altered:
error.html.erb
viewWhy?
I am doing this because: