diff --git a/app/http.php b/app/http.php index 517a1aa544..c1d9ca625b 100644 --- a/app/http.php +++ b/app/http.php @@ -633,8 +633,11 @@ $http->on(Constant::EVENT_REQUEST, function (SwooleRequest $swooleRequest, Swool 'trace' => $th->getTrace(), 'version' => $version, ] : [ - 'message' => 'Error: Server Error', + 'message' => 'Error: ' . $th->getMessage(), 'code' => 500, + 'file' => $th->getFile(), + 'line' => $th->getLine(), + 'trace' => $th->getTrace(), 'version' => $version, ];