Fix PIREP field error on file

This commit is contained in:
Nabeel Shahzad
2018-08-20 09:20:03 -05:00
parent 2dee3190ce
commit 5ee053cace
6 changed files with 15 additions and 8 deletions

View File

@@ -132,7 +132,6 @@ class Handler extends ExceptionHandler
{
if ($request->expectsJson() || $request->is('api/*')) {
$error = $this->createError(401, 'Unauthenticated');
return response()->json($error, 401);
}
@@ -159,8 +158,8 @@ class Handler extends ExceptionHandler
'exception' => $e,
'SKIN_NAME' => config('phpvms.skin'),
], $status, $e->getHeaders());
} else {
return $this->convertExceptionToResponse($e);
}
return $this->convertExceptionToResponse($e);
}
}