1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

Merge pull request #2519 from appwrite/fix-500-status-code

fix: status code on uncaught exception
This commit is contained in:
Matej Bačo 2021-12-21 11:32:03 +01:00 committed by GitHub
commit aae56831fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,6 +182,8 @@ $http->on('request', function (SwooleRequest $swooleRequest, SwooleResponse $swo
$db = null;
}
$swooleResponse->setStatusCode(500);
if(App::isDevelopment()) {
$swooleResponse->end('error: '.$th->getMessage());
}