modify
This commit is contained in:
@@ -42,6 +42,7 @@ class OnRequest extends Callback
|
|||||||
}
|
}
|
||||||
return \router()->dispatch();
|
return \router()->dispatch();
|
||||||
} catch (ExitException | Error | \Throwable $exception) {
|
} catch (ExitException | Error | \Throwable $exception) {
|
||||||
|
$this->addError($exception);
|
||||||
if ($exception instanceof ExitException) {
|
if ($exception instanceof ExitException) {
|
||||||
return \send($exception->getMessage(), $exception->getCode());
|
return \send($exception->getMessage(), $exception->getCode());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user