diff --git a/VERSION b/VERSION index 9ddbe16..53fc08d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.19 +1.2.20 diff --git a/flight/Engine.php b/flight/Engine.php index d55db3f..0ac148a 100644 --- a/flight/Engine.php +++ b/flight/Engine.php @@ -148,9 +148,9 @@ class Engine { /** * Custom exception handler. Logs exceptions. * - * @param \Exception $e Thrown exception + * @param object $e Thrown exception */ - public function handleException(\Exception $e) { + public function handleException($e) { if ($this->get('flight.log_errors')) { error_log($e->getMessage()); } @@ -354,9 +354,9 @@ class Engine { /** * Sends an HTTP 500 response for any errors. * - * @param \Exception Thrown exception + * @param object $e Thrown exception */ - public function _error(\Exception $e) { + public function _error($e) { $msg = sprintf('
%s', @@ -371,6 +371,9 @@ class Engine { ->write($msg) ->send(); } + catch (\Throwable $t) { + exit($msg); + } catch (\Exception $ex) { exit($msg); }