more descriptive error message in zipFile ctor
@@ -358,6 +358,7 @@ private ZipFile(final SeekableByteChannel channel, final String archiveName,
final String encoding, final boolean useUnicodeExtraFields,
final boolean closeOnError, final boolean ignoreLocalFileHeader)
throws IOException {
+ try {
isSplitZipArchive = (channel instanceof ZipSplitReadOnlySeekableByteChannel);
this.archiveName = archiveName;
@@ -381,6 +382,11 @@ private ZipFile(final SeekableByteChannel channel, final String archiveName,
}
}
}
+ catch (IOException e)
+ {
+ throw new IOException(e.getMessage() + " error on archive " + archiveName, e.getCause());
+ }
+ }
/**
* The encoding to use for file names and the file comment.
