Fixed error handler
This commit is contained in:
parent
4c1f4c9092
commit
d8048a9292
1 changed files with 3 additions and 2 deletions
|
@ -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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue