Commit 0a3db54f authored by David Isaac Wolinsky's avatar David Isaac Wolinsky

Fix to make the error actually work

parent a3994a5d
require 'digest'
require 'vagrant/util/downloader'
require 'vagrant/errors'
def check(path)
checksum = Digest::SHA256.new.file(path).hexdigest
if checksum != BOX_CHECKSUM
raise Errors::BoxVerificationFailed.new
raise Vagrant::Errors::BoxVerificationFailed.new
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment