From 86b0b2c70f2d6929543878609cefe6a9e5542ec7 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Wed, 12 Apr 2017 07:20:49 +0200 Subject: The function "set_exception_handler" was modified. --- core/application.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core') 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()); }); #=============================================================================== -- cgit v1.2.3