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

Fix: launcher.go swallows downstream error messages #641

Conversation

phil9909
Copy link
Contributor

launcher.go currently swallows error messages from os.Stat, tar.FileInfoHeader and os.Open.
We should change this, as the downstream errors can have different reasons, which are interesting to the enduser. E.g. os.Stat could return an error when the file is not found or when permissions are wrong.

@phil9909 phil9909 requested a review from a team as a code owner June 24, 2021 11:47
Copy link
Member

@natalieparellano natalieparellano left a comment

Choose a reason for hiding this comment

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

@phil9909 thanks for the PR!

@natalieparellano natalieparellano merged commit d2fdd3a into buildpacks:main Jun 24, 2021
@phil9909 phil9909 deleted the dont-swallow-original-error-message branch June 25, 2021 06:42
@phil9909
Copy link
Contributor Author

That was fast, thanks :)

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.

3 participants