We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 037a923 commit 76049c5Copy full SHA for 76049c5
app/Exceptions/Handler.php
@@ -72,10 +72,11 @@ public function render($request, Exception $e)
72
73
// If we are debugging, return the exception in it's full manner.
74
return response()->json([
75
- 'error' => $e->getMessage(),
+ 'error' => (empty($e->getMessage())) ? $exception : $e->getMessage(),
76
'code' => $e->getCode(),
77
'file' => $e->getFile(),
78
- 'line' => $e->getLine()
+ 'line' => $e->getLine(),
79
+ 'trace' => $e->getTrace(),
80
], 500);
81
82
}
0 commit comments