add error message grouping at the end of fetch step #5664
TheBlindHawk
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the user story
I was upgrading multiple libraries from a repository, and after checking that they were working I deployed them for staging.
The staging branch failed to deploy due to a yarn error (YN0041) which took a lot more time to find that it could have otherwise.
The reason it took so long is because the error message was hidden deep within multiple other "non-error" messages like this:
At first I thought that the build had failed without outputting any errors, but later came to the conclusion that that could not be the case and found the error.
Describe the solution you'd like
Would it be possible to output error that caused the install to fail right before/after the
Failed with errors
line?maybe it could be an optional
yarn install --relog-errors
.Describe the drawbacks of your solution
It is probably not a very required feature, with only a few use case scenarios I can think of, as in most cases the error log is quite easy to find.
In case it is not set as a command option it would cause the error message to be printed twice, which could be a bit confusing in the absence of other logs.
Describe alternatives you've considered
I think other alternatives would be to stop the logs when the error occurs or to have the error logged at the end , instead of when it occurs:
Beta Was this translation helpful? Give feedback.
All reactions