-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add default exception handler #54
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
src/App.php
Outdated
@@ -576,6 +576,21 @@ public function execute(Route $route, Request $request): self | |||
} | |||
} | |||
} catch (\Throwable $e) { | |||
if (empty(self::$errors['*'])) { // If no error handler is set then add a default one. | |||
self::$errors['*'][] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no longer $errors['*']
please check the new implementation of errors.
@PineappleIOnic please resolve the conflicts and check for the failing tests |
This PR adds a default exception handler to utopia that is used when the user has not defined their own