More useful error message for missing checksums

This commit is contained in:
Jack Nagel 2013-09-17 21:25:41 -05:00
parent e3a3a0c320
commit d46f500556

View File

@ -73,7 +73,7 @@ class Resource
def verify_download_integrity fn def verify_download_integrity fn
fn.verify_checksum(checksum) fn.verify_checksum(checksum)
rescue ChecksumMissingError rescue ChecksumMissingError
opoo "Cannot verify download integrity" opoo "Cannot verify integrity of #{fn.basename}"
puts "A checksum was not provided for this resource" puts "A checksum was not provided for this resource"
puts "For your reference the SHA1 is: #{fn.sha1}" puts "For your reference the SHA1 is: #{fn.sha1}"
rescue ChecksumMismatchError => e rescue ChecksumMismatchError => e