Fix admin exception handler

This commit is contained in:
Giuseppe Criscione 2021-01-05 16:17:13 +01:00
parent beb2c9a074
commit ae6e0d01f6

View File

@ -304,7 +304,7 @@ final class Admin
{
$this->errors = new Controllers\ErrorsController();
set_exception_handler(function (Throwable $exception): void {
$this->errors->internalServerError($exception);
$this->errors->internalServerError($exception)->send();
throw $exception;
});
}