Skip to content

Commit

Permalink
Merge pull request #17 from monkenWu/dev
Browse files Browse the repository at this point in the history
2022.12.04 json exception bug fix
  • Loading branch information
monkenWu authored Dec 4, 2022
2 parents 293af6e + 80a7cfc commit 2ef40b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Bridge/Debug/Exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ public function exceptionHandler($exception)
$msg = $this->collectVars($exception, $statusCode);
if (ENVIRONMENT === 'development' && SHOW_DEBUG_BACKTRACE) {
$this->response->setBody(json_encode($msg));
}else{
$this->response->setBody('');
}
$this->response->setStatusCode($statusCode);

return new ResponseBridge($this->response, $this->rRequest);
}
}
Expand Down

0 comments on commit 2ef40b7

Please sign in to comment.