mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-01-31 03:16:42 +01:00
Return error message in profile exception handler response
This commit is contained in:
parent
3c0e922b28
commit
3ba8467870
1 changed files with 4 additions and 2 deletions
|
@ -47,9 +47,11 @@ class Profiler
|
|||
|
||||
try {
|
||||
$response = $next($request);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
$response = \Response::make(['exception' => $e->getTrace()], 500);
|
||||
$response = \Response::make([
|
||||
'message' => $e->getMessage(),
|
||||
'exception' => $e->getTrace()
|
||||
], 500);
|
||||
$profiler->log('error', $e->__toString(), []);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue