-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error handling for HttpExceptions
This adds support for all abort($code) errors that can be thrown. 404 will always display the 404 page (either provided by the theme or the default CMS 404 view) Any other status code will either display the exception itself when debug mode is enabled or the nice error page (provided by the theme /error page or the default CMS error view) when debug mode is disabled. Fixes #1236
- Loading branch information
1 parent
963984a
commit f5b34cc
Showing
1 changed file
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f5b34cc
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.
@bennothommo @jaxwilko thinking about this further, this should probably be in the CMS module instead, what do you guys think?
f5b34cc
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.
Yep, it would make more sense in there.