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

Exception Response Codes #176

Merged
merged 4 commits into from
Jun 26, 2013

Conversation

bobbrez
Copy link
Contributor

@bobbrez bobbrez commented Jun 26, 2013

I've put together bobbrez/errorspike as an example. By just installing BetterErrors, any error response (i.e. ActiveRecord::RecordNotFound 404) are being set to 500 responses. This makes it difficult to debug asynchronous requests that expect proper error codes.

If ActionDispatch::ExceptionWrapper is available, then use it to generate the exception code, otherwise continue issuing a 500.

* When ActionDispatch::ExceptionWrapper is available, use it to grab the exception's status code, return a 500 otherwise.
* Update show_error_page to accept the caught exception
* Send show_error_page the exception
haileys pushed a commit that referenced this pull request Jun 26, 2013
@haileys haileys merged commit baaffb2 into BetterErrors:master Jun 26, 2013
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