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
This commit is contained in:
Brett Porter 2008-05-06 08:37:28 +00:00
parent 111794694b
commit 8e21af2147
1 changed files with 4 additions and 2 deletions

View File

@ -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 );
}