diff --git a/autoload.php b/autoload.php index 59f3712..9765698 100644 --- a/autoload.php +++ b/autoload.php @@ -12,3 +12,8 @@ spl_autoload_register(function ($className) { require_once $file; } }); + +set_exception_handler(function ($exception) { + echo "Uncaught exception: " , $exception->getMessage(), "\n"; + echo $exception->getTraceAsString(); +});