diff --git a/route.php b/route.php index 3f5833e..5d6acbe 100644 --- a/route.php +++ b/route.php @@ -414,7 +414,7 @@ class route @param $e Exception to print */ public function error ($e) { - if ($e->getCode () === "") + if ($e->getCode () === "" || $e->getCode () === 0) $getCode = 500; else $getCode = $e->getCode ();