Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
show exception middleware accepts multiple apps #7804
schneems wants to merge 2 commits into rails:masterfrom schneems:schneems/multiple-error-apps
Commits on Oct 7, 2012
Commits on Oct 9, 2012
Sep 30, 2012
The show exception middleware allows developers to use custom error rendering apps. As error rendering applications become more complicated the chance for errors in the error rendering applications increases. By allowing multiple exception apps to be used instead of just one a developer can provide a fallback application. This provides a better experience for the end user and decreases the chances that the `FAILSAFE_RESPONSE` will be used. By default the public exception app will be put after any applications specified using `config.exceptions_app` in rails. This will provide a fallback in case an error is introduced by the exceptions_app. Errors from within exception_apps will still be shown in the logs for debugging.