mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 13:53:45 +02:00
Fix exception handler misnamed variable
This commit is contained in:
@@ -49,7 +49,7 @@ class Handler extends ExceptionHandler
|
||||
if ($request->expectsJson()) {
|
||||
$response = response()->json([
|
||||
'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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user