mirror of https://github.com/apache/archiva.git
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:
parent
111794694b
commit
8e21af2147
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue