Skip to content

Commit 4ae98dd

Browse files
committed
[PLXCOMP-169] add filename info when raising an error
submitted by: Thomas Belot
1 parent 866049f commit 4ae98dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,10 @@ protected void zipFile( ArchiveEntry entry, ZipOutputStream zOut, String vPath )
595595
final long lastModified = entry.getResource().getLastModified() + ( roundUp ? 1999 : 0 );
596596
zipFile( in, zOut, vPath, lastModified, null, entry.getMode() );
597597
}
598+
catch ( IOException e )
599+
{
600+
throw new ArchiverException( "IOException when zipping " + entry.getName() + ": " + e.getMessage(), e );
601+
}
598602
finally
599603
{
600604
IOUtil.close( in );

0 commit comments

Comments
 (0)