Skip to content

Commit 1c85b1f

Browse files
committed
Fix exception handler misnamed variable
1 parent d4adedd commit 1c85b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Exceptions/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function render($request, Exception $exception)
4949
if ($request->expectsJson()) {
5050
$response = response()->json([
5151
'error' => ($exception instanceof DisplayException) ? $exception->getMessage() : 'An unhandled error occured while attempting to process this request.',
52-
], ($this->isHttpException($exception)) ? $e->getStatusCode() : 500);
52+
], ($this->isHttpException($exception)) ? $exception->getStatusCode() : 500);
5353

5454
parent::report($exception);
5555
}

0 commit comments

Comments
 (0)