Skip to content

Commit dd1f780

Browse files
committed
when failing to unzip a file, provide its path in the exception
1 parent bcef313 commit dd1f780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

j-lawyer-backupmgr/src/main/java/org/jlawyer/backupmgr/impl/RestoreExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ private void unzipWithPassword(File source, String targetDir, String password) t
876876
t.printStackTrace();
877877
fileFailures = fileFailures + 1;
878878
if (fileFailures > 5) {
879-
throw new Exception("Mehr als 5 Dateien konnten nicht wiederhergestellt werden - Abbruch!");
879+
throw new Exception("Mehr als 5 Dateien aus " + source.getAbsolutePath() + " konnten nicht wiederhergestellt werden - Abbruch!");
880880
}
881881
}
882882
}

0 commit comments

Comments
 (0)