mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-03-19 01:37:11 +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 {
|
try {
|
||||||
$response = $next($request);
|
$response = $next($request);
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} 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(), []);
|
$profiler->log('error', $e->__toString(), []);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue