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

Make sure TarballFetcher error messages contain names of problematic files #5964

Merged
merged 2 commits into from
Jun 11, 2018
Merged

Conversation

sth
Copy link
Contributor

@sth sth commented Jun 10, 2018

Summary

The error messages caused by TarballFetcher are supposed to contain the name of the offending file. The name is taken from the streams path attribute, but since a recent change this attribute is empty.

This PR populates the attribute again and tests that the path is actually mentioned in the TarballFetcher error messages.

Test plan

Existing tests have been modified to be stricter than before and test for this problem.

sth added 2 commits June 10, 2018 15:15
This isn't required to open the file (`fd` is used), but it allows the
stream to have a useful `path` attribute.
@sth sth changed the title Make sure TarballFetcher error messages contain names of problematic file Make sure TarballFetcher error messages contain names of problematic file`s Jun 10, 2018
@sth sth changed the title Make sure TarballFetcher error messages contain names of problematic file`s Make sure TarballFetcher error messages contain names of problematic files Jun 10, 2018
Copy link
Member

@arcanis arcanis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@arcanis arcanis merged commit fc94a16 into yarnpkg:master Jun 11, 2018
@sth sth deleted the stream-path branch June 11, 2018 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants