summaryrefslogtreecommitdiffstats
path: root/public_html
diff options
context:
space:
mode:
Diffstat (limited to 'public_html')
-rw-r--r--public_html/index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/public_html/index.php b/public_html/index.php
index dec18a8fd..aa9e12ec4 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -378,6 +378,9 @@ try {
}
redirect("user/login?redirect_uri=".$redirect_uri);
} catch (\exceptions\PublicApiException $e) {
+ if ($e->get_http_error_code() == 500) {
+ \libraries\ExceptionHandler::log_exception($e);
+ }
show_error(nl2br(htmlspecialchars($e->__toString())), $e->get_http_error_code());
} finally {
if ($testname) {