From 8e21af2147588ed8d9adb4860ab254f9e9e9b944 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Tue, 6 May 2008 08:37:28 +0000 Subject: improve the error message to confirm the file when this pops up next. I think I'm seeing this when proxying metadata in some instances git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@653709 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/archiva/checksum/ChecksummedFile.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'archiva-modules') 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 ); } -- cgit v1.2.3