addresses feature request

This commit is contained in:
kevin olson
2016-09-01 18:48:48 -07:00
parent 938c42c55b
commit 631e267e19
+3 -1
View File
@@ -40,10 +40,12 @@ class JsonResponseHandler extends Handler
public function handle()
{
$response = [
'error' => Formatter::formatExceptionAsDataArray(
'errors' => [
Formatter::formatExceptionAsDataArray(
$this->getInspector(),
$this->addTraceToOutput()
),
],
];
if (\Whoops\Util\Misc::canSendHeaders()) {