-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Core: Module] Explicitly handle 500 errors properly for various exc…
…eption types (#4163) This fixes a bug where LORIS would sometimes incorrectly show 404 errors when an exception was thrown. It adds exception handlers for explicit exception types in the Module router and logs them to the error log, while serving a properly decorated 500 error page to the user.
- Loading branch information
1 parent
d386cb3
commit 5fc333c
Showing
2 changed files
with
70 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
<div class="container"> | ||
{foreach from=$error_message item=message} | ||
<h2>{$message}</h2> | ||
{/foreach} | ||
<h3>{$message}</h3> | ||
<div><a href="{$baseurl}">Go to main page</a></div> | ||
</div> |