Skip to content

Commit

Permalink
Report SHA-256 hash (instead of SHA-1) if checksum is missing.
Browse files Browse the repository at this point in the history
I accidentally missed this in Homebrew#2719.
  • Loading branch information
Lucas Garron committed Feb 9, 2014
1 parent 75f89d8 commit 3c00e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cask/download.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ def _check_sums(path, sums)
has_sum = true
end
end
raise ChecksumMissingError.new("Checksum required. SHA1: '#{Digest::SHA1.file(path).hexdigest}'") unless has_sum
raise ChecksumMissingError.new("Checksum required. SHA-256: '#{Digest::SHA256.file(path).hexdigest}'") unless has_sum
end
end

0 comments on commit 3c00e22

Please sign in to comment.