Minified exception traces
This commit is contained in:
parent
0ebe4d5d3e
commit
ef1a3b9843
1 changed files with 4 additions and 1 deletions
|
@ -40,9 +40,12 @@ final class Dispatcher
|
|||
catch (\Exception $e)
|
||||
{
|
||||
$code = 400;
|
||||
$trace = $e->getTrace();
|
||||
foreach ($trace as &$item)
|
||||
unset($item['args']);
|
||||
$json = [
|
||||
'error' => $e->getMessage(),
|
||||
'trace' => $e->getTrace(),
|
||||
'trace' => $trace,
|
||||
];
|
||||
}
|
||||
$end = microtime(true);
|
||||
|
|
Loading…
Reference in a new issue