Minified exception traces

This commit is contained in:
Marcin Kurczewski 2014-09-16 14:42:46 +02:00
parent 0ebe4d5d3e
commit ef1a3b9843

View file

@ -40,9 +40,12 @@ final class Dispatcher
catch (\Exception $e) catch (\Exception $e)
{ {
$code = 400; $code = 400;
$trace = $e->getTrace();
foreach ($trace as &$item)
unset($item['args']);
$json = [ $json = [
'error' => $e->getMessage(), 'error' => $e->getMessage(),
'trace' => $e->getTrace(), 'trace' => $trace,
]; ];
} }
$end = microtime(true); $end = microtime(true);