aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/application.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/application.php b/core/application.php
index 3f59fdb..15266d8 100644
--- a/core/application.php
+++ b/core/application.php
@@ -23,9 +23,8 @@ spl_autoload_register(function($classname) {
#===============================================================================
# Exception handler for non-caught exceptions
#===============================================================================
-set_exception_handler(function($Exception) {
- http_response_code(503);
- exit($Exception->getMessage());
+set_exception_handler(function(Exception $Exception) {
+ Application::exit($Exception->getMessage());
});
#===============================================================================