Explorar el Código

Fix error handler not displaying exception message in debug env

Bubka hace 5 años
padre
commit
fe5f4c8b88
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      app/Exceptions/Handler.php

+ 1 - 0
app/Exceptions/Handler.php

@@ -136,6 +136,7 @@ class Handler extends ExceptionHandler
                 $response['message'] = ($statusCode >= 500) ? 'Whoops, looks like something went wrong' : $exception->getMessage();
 
                 if (env('APP_DEBUG')) {
+                    $response['originalMessage'] = $exception->getMessage();
                     $response['debug'] = $debug;
                 }