package file action: correctly report problems with invalid zip files (EA-74396)

This commit is contained in:
nik
2016-10-07 16:23:50 +03:00
parent 8445d3ef49
commit 014cf477ed
@@ -203,6 +203,11 @@ public class PackageFileWorker {
private static JBZipFile getOrCreateZipFile(File archiveFile) throws IOException {
FileUtil.createIfDoesntExist(archiveFile);
return new JBZipFile(archiveFile);
try {
return new JBZipFile(archiveFile);
}
catch (IllegalArgumentException e) {
throw new IOException(e);
}
}
}