summaryrefslogtreecommitdiffstats
path: root/core/application.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-04-12 07:20:49 +0200
committerThomas Lange <code@nerdmind.de>2017-04-12 07:20:49 +0200
commit86b0b2c70f2d6929543878609cefe6a9e5542ec7 (patch)
treed3b87d3f4ae40c276893e533a0f0b39321ab8091 /core/application.php
parent4802aeada5b8fde0848852ee56454c887738ead4 (diff)
downloadblog-86b0b2c70f2d6929543878609cefe6a9e5542ec7.tar.gz
blog-86b0b2c70f2d6929543878609cefe6a9e5542ec7.tar.xz
blog-86b0b2c70f2d6929543878609cefe6a9e5542ec7.zip
The function "set_exception_handler" was modified.
Diffstat (limited to 'core/application.php')
-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());
});
#===============================================================================