Skip to content

Commit

Permalink
Error message as one. No array.
Browse files Browse the repository at this point in the history
  • Loading branch information
honzapospi authored Feb 15, 2017
1 parent 2636a1e commit bbeac7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bbeac7d

Please sign in to comment.