forked from Alex/Pterodactyl-Panel
Fix exception handler misnamed variable
This commit is contained in:
parent
d4adedd4a0
commit
1c85b1fbc4
@ -49,7 +49,7 @@ class Handler extends ExceptionHandler
|
|||||||
if ($request->expectsJson()) {
|
if ($request->expectsJson()) {
|
||||||
$response = response()->json([
|
$response = response()->json([
|
||||||
'error' => ($exception instanceof DisplayException) ? $exception->getMessage() : 'An unhandled error occured while attempting to process this request.',
|
'error' => ($exception instanceof DisplayException) ? $exception->getMessage() : 'An unhandled error occured while attempting to process this request.',
|
||||||
], ($this->isHttpException($exception)) ? $e->getStatusCode() : 500);
|
], ($this->isHttpException($exception)) ? $exception->getStatusCode() : 500);
|
||||||
|
|
||||||
parent::report($exception);
|
parent::report($exception);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user