1
0
Fork 0
mirror of synced 2024-09-28 07:21:35 +12:00

Fixed error handler

This commit is contained in:
Eldad Fux 2020-12-22 21:53:49 +02:00
parent 4c1f4c9092
commit d8048a9292

View file

@ -108,8 +108,9 @@ $http->on('request', function (SwooleRequest $swooleRequest, SwooleResponse $swo
if(App::isDevelopment()) { if(App::isDevelopment()) {
$swooleResponse->end('error: '.$th->getMessage()); $swooleResponse->end('error: '.$th->getMessage());
} }
else {
$swooleResponse->end('500: Server Error'); $swooleResponse->end('500: Server Error');
}
} }
}); });