diff options
author | Thomas Lange <code@nerdmind.de> | 2017-04-12 07:20:49 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-04-12 07:20:49 +0200 |
commit | 86b0b2c70f2d6929543878609cefe6a9e5542ec7 (patch) | |
tree | d3b87d3f4ae40c276893e533a0f0b39321ab8091 | |
parent | 4802aeada5b8fde0848852ee56454c887738ead4 (diff) | |
download | blog-86b0b2c70f2d6929543878609cefe6a9e5542ec7.tar.gz blog-86b0b2c70f2d6929543878609cefe6a9e5542ec7.tar.xz blog-86b0b2c70f2d6929543878609cefe6a9e5542ec7.zip |
The function "set_exception_handler" was modified.
-rw-r--r-- | core/application.php | 5 |
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()); }); #=============================================================================== |