Skip to content

Commit

Permalink
pool: Fix corruption error message
Browse files Browse the repository at this point in the history
A file size mismatch was reported as a checksum mismatch.

Target: trunk
Require-book: no
Require-notes: no
Acked-by: Paul Millar <paul.millar@desy.de>
Patch: http://rb.dcache.org/r/5426/
  • Loading branch information
gbehrmann committed Apr 10, 2013
1 parent 4bf5f6b commit 60bb2de
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -66,7 +66,7 @@ public FileCorruptedCacheException(Set<Checksum> expectedChecksums, Set<Checksum

public FileCorruptedCacheException(long expectedSize, long actualSize)
{
super(FILE_CORRUPTED, "Checksum mismatch (expected=" + expectedSize + ", actual=" + actualSize+ ")");
super(FILE_CORRUPTED, "File size mismatch (expected=" + expectedSize + ", actual=" + actualSize+ ")");
_expectedChecksums = Optional.absent();
_actualChecksums = Optional.absent();
_expectedSize = Optional.of(expectedSize);
Expand Down

0 comments on commit 60bb2de

Please sign in to comment.