Fix exception handler misnamed variable

This commit is contained in:
Dane Everitt 2017-01-15 13:53:08 -05:00
parent d4adedd4a0
commit 1c85b1fbc4
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -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);
}