Exception: Omnibus::ChecksumMismatch

Inherits:
Error
  • Object
show all
Defined in:
lib/omnibus/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(software, expected, actual) ⇒ ChecksumMismatch


218
219
220
221
222
223
224
225
226
227
228
229
230
# File 'lib/omnibus/exceptions.rb', line 218

def initialize(software, expected, actual)
  super <<-EOH
Verification for #{software.name} failed due to a checksum mismatch:

expected: #{expected}
actual:   #{actual}

This added security check is used to prevent MITM attacks when downloading the
remote file. If you have updated the version or URL for the download, you will
also need to update the checksum value. You can find the checksum value on the
software publisher's website.
EOH
end