diff --git a/route.php b/route.php index 5d6acbe..6566f94 100644 --- a/route.php +++ b/route.php @@ -419,6 +419,10 @@ class route else $getCode = $e->getCode (); + $message = $e->getMessage (); + if ($e->getCode () === 0) + $message .= "
The Exception code was 0 and converted to 500
\n"; + // If an error class/method is defined, use it in place of the default // one. // The errors must be defined in an array("class", "method"); @@ -431,7 +435,7 @@ class route "the method in an array\n"); $a = new $this->errors[0]; $method = $this->errors[1]; - $a->$method ($getCode, $e->getMessage()); + $a->$method ($getCode, $message); exit; } @@ -447,7 +451,7 @@ class route echo " \n"; echo" \n"; echo "