1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13: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,9 +108,10 @@ $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');
} }
}
}); });
$http->start(); $http->start();