aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2008-05-06 08:37:28 +0000
committerBrett Porter <brett@apache.org>2008-05-06 08:37:28 +0000
commit8e21af2147588ed8d9adb4860ab254f9e9e9b944 (patch)
tree7d208dbffdc0ab6d0bff0c3d26e8195c09fb486e /archiva-modules
parent111794694bb751257504f5ebddbea5a40fd94831 (diff)
downloadarchiva-8e21af2147588ed8d9adb4860ab254f9e9e9b944.tar.gz
archiva-8e21af2147588ed8d9adb4860ab254f9e9e9b944.zip
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
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-base/archiva-checksum/src/main/java/org/apache/archiva/checksum/ChecksummedFile.java6
1 files changed, 4 insertions, 2 deletions
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 );
}