Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Commit

Permalink
Delete multichunk from cache if decryption failed. Related to #59
Browse files Browse the repository at this point in the history
  • Loading branch information
binwiederhier committed Sep 10, 2014
1 parent 32cf5c0 commit 236b5dc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -91,7 +91,7 @@ public void downloadAndDecryptMultiChunks(Set<MultiChunkId> unknownMultiChunkIds
logger.log(Level.FINE, " -> FAILED: Decryption/extraction of multichunk failed, deleting " + multiChunkId + " ...");
localDecryptedMultiChunkFile.delete();

throw new IOException("Multichunk decryption/extraction failed. The multichunk might have been tampered with!", e);
throw new IOException("Decryption/extraction of multichunk " + multiChunkId + " failed. The multichunk might have been tampered with!", e);
}
finally {
logger.log(Level.FINE, " + Locally deleting multichunk " + multiChunkId + " ...");
Expand Down

0 comments on commit 236b5dc

Please sign in to comment.