From ef1a3b984329803a57fec1d33c1851233ed70c10 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Tue, 16 Sep 2014 14:42:46 +0200 Subject: [PATCH] Minified exception traces --- src/Dispatcher.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Dispatcher.php b/src/Dispatcher.php index 79c99062..2ae70ae6 100644 --- a/src/Dispatcher.php +++ b/src/Dispatcher.php @@ -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);