Fix up some stuff from previous pull request

This commit is contained in:
Mitchell Hashimoto 2012-03-30 19:31:03 -07:00
parent db6cd14f9e
commit 1782acdf2e
2 changed files with 6 additions and 6 deletions

View File

@ -122,11 +122,11 @@ module Vagrant
output = execute("--version")
if output =~ /vboxdrv kernel module is not loaded/
raise Errors::VirtualBoxKernelModuleNotLoaded
elsif output =~ /Please install/
# Check for installation incomplete warnings, for example:
# "WARNING: The character device /dev/vboxdrv does not
# exist. Please install the virtualbox-ose-dkms package and
# the appropriate headers, most likely linux-headers-generic."
elsif output =~ /Please install/
raise Errors::VirtualBoxInstallIncomplete
end

View File

@ -389,7 +389,7 @@ module Vagrant
end
class VirtualBoxInstallIncomplete < VagrantError
status_code(79)
status_code(80)
error_key(:virtualbox_install_incomplete)
end