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

Improve error handling in ZIP utilities #1290

Merged
merged 1 commit into from
Dec 11, 2019

Conversation

retronym
Copy link
Member

@retronym retronym commented Dec 11, 2019

This was the root cause of #1035. It no longer is as big a problem since #1026 pre-validates that files exists, but it seems worth cleaning this up.

case t: Throwable =>
IOUtils.closeQuietly(zipOut)
throw t
} finally {
Copy link
Member Author

Choose a reason for hiding this comment

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

Oh for Java's try-with-resources.

Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

LGTM

@muuki88 muuki88 added the universal Zip, tar.gz, tgz and bash issues label Dec 11, 2019
@muuki88 muuki88 merged commit 0dca650 into sbt:master Dec 11, 2019
@muuki88
Copy link
Contributor

muuki88 commented Dec 11, 2019

Started 1.5.2 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
universal Zip, tar.gz, tgz and bash issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants