summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Isaac Wolinsky <isaac.wolinsky@gmail.com>2013-12-23 16:57:52 -0500
committerDavid Isaac Wolinsky <isaac.wolinsky@gmail.com>2013-12-23 16:58:31 -0500
commit2349928801b64e61901dcbe0c59562dd6533ece9 (patch)
tree172696271d42f01c5e2e63e9145d54078c71c1f6
parent89f8b2039888fd04939b9311a2f21d52ddabcbb7 (diff)
Fix to make the error actually workbugfix
-rw-r--r--vagrant/lib/vagrant_verified_download.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/vagrant/lib/vagrant_verified_download.rb b/vagrant/lib/vagrant_verified_download.rb
index 0b55338..ced6812 100644
--- a/vagrant/lib/vagrant_verified_download.rb
+++ b/vagrant/lib/vagrant_verified_download.rb
@@ -1,10 +1,11 @@
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