1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +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,9 +108,10 @@ $http->on('request', function (SwooleRequest $swooleRequest, SwooleResponse $swo
if(App::isDevelopment()) {
$swooleResponse->end('error: '.$th->getMessage());
}
else {
$swooleResponse->end('500: Server Error');
}
}
});
$http->start();