From bbeac7d16e07825d05a45d1d2ec3b55b1c2311ee Mon Sep 17 00:00:00 2001 From: honzapospi Date: Wed, 15 Feb 2017 22:39:49 +0100 Subject: [PATCH] Error message as one. No array. --- src/Application.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Application.php b/src/Application.php index 3c4092a..c72cf30 100644 --- a/src/Application.php +++ b/src/Application.php @@ -97,7 +97,7 @@ private function renderException(\Exception $e, $code){ $error = array( 'message' => $code < 500 ? $e->getMessage() : 'Internal server error.' ); - $response->error = array($error); + $response->error = $error; $response->setStatusCode($code); $this->renderer->send($response); } else {