mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-23 23:49:53 +01:00
Fix error handler not displaying exception message in debug env
This commit is contained in:
parent
330fb68fc1
commit
fe5f4c8b88
@ -136,6 +136,7 @@ private function customApiResponse($exception, $debug)
|
||||
$response['message'] = ($statusCode >= 500) ? 'Whoops, looks like something went wrong' : $exception->getMessage();
|
||||
|
||||
if (env('APP_DEBUG')) {
|
||||
$response['originalMessage'] = $exception->getMessage();
|
||||
$response['debug'] = $debug;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user