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

Returns a new instance of ChecksumMismatch


230
231
232
233
234
235
236
237
238
239
240
241
242
# File 'lib/omnibus/exceptions.rb', line 230

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