From 8300e47b769cd697b1949d94c50e191bbaeb01a7 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Sat, 25 Apr 2020 11:09:32 +0200 Subject: [PATCH] Exeption Handling --- app/Bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Bootstrap.php b/app/Bootstrap.php index 285d23d..da9745b 100644 --- a/app/Bootstrap.php +++ b/app/Bootstrap.php @@ -36,7 +36,7 @@ Autoloader::setRoot('/var/www/dev.steelants.cz/vasek/home-update/'); class ErrorHandler { static function exception($exception){ error_log($exception); - header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500); + header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, $exception->getCode()); echo '

Oops!

Something went wrong!

'; exit; }