-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Consistent error handling for addon-interactions #16585
Comments
Preferably we wouldn't show a red box for simple errors at all, but rather something like the interactions panel. However, the interactions addon might not be installed, even when using the play function and instrumented libraries. That means we can't simply catch everything thrown in the play function, because doing so would gobble it up and go nowhere. We could simply catch it, log the error to console and call it a day. |
I think @ghengeveld's ideas make sense; I would just say that for now whatever we do I think we should be consistent between normal and intercepted errors. For 6.4 that probably means logging to the console and showing in the interactions panel. |
Huzzah!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.4.0-beta.29 containing PR #16590 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
Reopening because the PR that handles this is still pending: #16592 |
Sorry not sure why I referenced this issue |
Ta-da!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-alpha.11 containing PR #16592 that references this issue. Upgrade today to the
|
Currently we handle errors differently between errors thrown on instrumented functions and errors thrown on non-instrumented functions:
The former shows an error in the interactions tab:
The latter shows a typical storybook error:
Should this handling be consistent?
The text was updated successfully, but these errors were encountered: