mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-26 20:04:45 +01:00
Catch all errors.
This commit is contained in:
parent
4a8057c0bf
commit
1844a1665f
@ -191,11 +191,6 @@ class ApiController
|
||||
*/
|
||||
private function setError(\Throwable $e): self
|
||||
{
|
||||
if ($e instanceof \Error) {
|
||||
//Это критическая ошибка соедниения. Необходим полный перезапуск.
|
||||
throw $e;
|
||||
}
|
||||
|
||||
$this->setPageCode(400);
|
||||
$this->page['errors'][] = [
|
||||
'code' => $e->getCode(),
|
||||
|
Loading…
Reference in New Issue
Block a user