-
-
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
Avoid logging an object on compilation errors [2] #2199
Conversation
In certain configurations Storybook might log the whole Webpack build object when warnings or errors are thrown. This was caused by a `logger.error` call inside the `index.js` catch. This fixes by logging the error only when it's an instance of an error.
Codecov Report
@@ Coverage Diff @@
## master #2199 +/- ##
=======================================
Coverage 21.42% 21.42%
=======================================
Files 263 263
Lines 5807 5807
Branches 698 698
=======================================
Hits 1244 1244
Misses 4031 4031
Partials 532 532
Continue to review full report at Codecov.
|
@Hypnosphi @danielduan In what case is the thrown object not an error? I don't understand this PR (not saying it's wrong, just want to know before I release it). Thanks! |
See #1889 |
Same as #2121 but for both react and vue apps (the change doesn't seem to make sense for RN app)