diff --git a/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java b/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java index f1b510497..d93ec53a3 100644 --- a/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java +++ b/archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java @@ -320,7 +320,8 @@ public class ChecksummedFile String filename = m.group( 1 ); if ( !isValidChecksumPattern( filename, expectedPath ) ) { - throw new IOException( "Supplied checksum does not match checksum pattern" ); + throw new IOException( "Supplied checksum file '" + filename + "' does not match expected file: '" + + expectedPath + "'" ); } trimmedChecksum = m.group( 2 ); } @@ -333,7 +334,8 @@ public class ChecksummedFile String filename = m.group( 2 ); if ( !isValidChecksumPattern( filename, expectedPath ) ) { - throw new IOException( "Supplied checksum does not match checksum pattern" ); + throw new IOException( "Supplied checksum file '" + filename + "' does not match expected file: '" + + expectedPath + "'" ); } trimmedChecksum = m.group( 1 ); }