better comments on the last change

This commit is contained in:
Mitchell Hashimoto 2013-03-29 13:15:11 -07:00
parent 30053638af
commit 0a86deedf1
1 changed files with 3 additions and 0 deletions

View File

@ -289,6 +289,9 @@ module VagrantPlugins
if @interrupted
@logger.info("Exit code != 0, but interrupted. Ignoring.")
elsif r.exit_code == 126
# This exit code happens if VBoxManage is on the PATH,
# but another executable it tries to execute is missing.
# This is usually indicative of a corrupted VirtualBox install.
raise Vagrant::Errors::VBoxManageNotFoundError
else
raise Vagrant::Errors::VBoxManageError, :command => command.inspect