class Omnibus::ChecksumMismatch

Public Class Methods

new(software, expected, actual) click to toggle source
Calls superclass method
# 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