summaryrefslogtreecommitdiffstats
path: root/vagrant/lib
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
commit0a3db54f2b14e8fefe259e13a682feaacfa935cc (patch)
tree4d60b0ef8bb3734343c7936c09aa9439c8c6cdba /vagrant/lib
parenta3994a5dec345b5b9e45071959191b1527219db5 (diff)
Fix to make the error actually work
Diffstat (limited to 'vagrant/lib')
-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