-
-
Notifications
You must be signed in to change notification settings - Fork 926
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
routeResolver.onmatch swallows errors #2531
Comments
Pretty sure this is somewhat intentional, but not entirely. What it could do is rethrow the error on rejection, so it acts more properly like a |
I didn't design that part of the router, BTW. So I'm not sure what the rationale was, if it was in fact by design. I don't believe this part is tested for, so it might have been an oversight. |
This issue does not seem to reproduce in v2.2.0 or later. Until v2.0.4, the process called on rejection seems to ignore the error. The following commit seemed to fix this issue. |
Good catch! Thanks! |
Mithril version: 2.0.3
Browser and OS: Chrome 76 on Win 10
Code
Flems
Steps to Reproduce
Expected Behavior
Not sure what behavior should happen, but I do expect to see the error in the JS console.
Current Behavior
Routed to default route and no error is shown in the JS console.
Context
Makes it difficult to debug why an application is behaving in an unexpected way when you can't see the underlying error.
The text was updated successfully, but these errors were encountered: