Bether Exeption Handler

This commit is contained in:
Václav Španinger 2020-07-27 16:57:01 +02:00
parent 3d68df2658
commit 2185c62472

View File

@ -46,6 +46,8 @@ class ErrorHandler {
$message = [ $message = [
'code' => $exception->getCode(), 'code' => $exception->getCode(),
'message' => $exception->getMessage(), 'message' => $exception->getMessage(),
'file' => $exception->getFile(),
'line' => $exception->getLine(),
]; ];
echo json_encode($message); echo json_encode($message);