Skip to content
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

Merged
merged 8 commits into from
Nov 1, 2017

Conversation

Hypnosphi
Copy link
Member

Same as #2121 but for both react and vue apps (the change doesn't seem to make sense for RN app)

derekstavis and others added 6 commits October 24, 2017 11:27
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
Copy link

codecov bot commented Nov 1, 2017

Codecov Report

Merging #2199 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           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
Impacted Files Coverage Δ
app/vue/src/server/index.js 0% <0%> (ø) ⬆️
app/react/src/server/index.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 90feaf9...7d07c40. Read the comment docs.

@Hypnosphi Hypnosphi self-assigned this Nov 1, 2017
@Hypnosphi Hypnosphi merged commit 3a25d93 into master Nov 1, 2017
@Hypnosphi Hypnosphi deleted the derekstavis-patch-2 branch November 1, 2017 02:08
Hypnosphi added a commit that referenced this pull request Nov 1, 2017
@shilman
Copy link
Member

shilman commented Nov 1, 2017

@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!

@Hypnosphi
Copy link
Member Author

See #1889

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants