Human friendly error on exit code 126 from VBoxManage
This commit is contained in:
parent
8156185f5d
commit
30053638af
|
@ -18,6 +18,8 @@ BUG FIXES:
|
||||||
- Error message if private key for SSH isn't owned by the proper
|
- Error message if private key for SSH isn't owned by the proper
|
||||||
user. [GH-1503]
|
user. [GH-1503]
|
||||||
- Don't error too early when `config.vm.box` is not properly set.
|
- Don't error too early when `config.vm.box` is not properly set.
|
||||||
|
- Show a human-friendly error if VBoxManage is not found (exit
|
||||||
|
status 126). [GH-934]
|
||||||
|
|
||||||
## 1.1.4 (March 25, 2013)
|
## 1.1.4 (March 25, 2013)
|
||||||
|
|
||||||
|
|
|
@ -427,6 +427,10 @@ module Vagrant
|
||||||
error_key(:vboxmanage_error)
|
error_key(:vboxmanage_error)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class VBoxManageNotFoundError < VagrantError
|
||||||
|
error_key(:vboxmanage_not_found_error)
|
||||||
|
end
|
||||||
|
|
||||||
class VirtualBoxInvalidVersion < VagrantError
|
class VirtualBoxInvalidVersion < VagrantError
|
||||||
error_key(:virtualbox_invalid_version)
|
error_key(:virtualbox_invalid_version)
|
||||||
end
|
end
|
||||||
|
|
|
@ -288,6 +288,8 @@ module VagrantPlugins
|
||||||
if r.exit_code != 0
|
if r.exit_code != 0
|
||||||
if @interrupted
|
if @interrupted
|
||||||
@logger.info("Exit code != 0, but interrupted. Ignoring.")
|
@logger.info("Exit code != 0, but interrupted. Ignoring.")
|
||||||
|
elsif r.exit_code == 126
|
||||||
|
raise Vagrant::Errors::VBoxManageNotFoundError
|
||||||
else
|
else
|
||||||
raise Vagrant::Errors::VBoxManageError, :command => command.inspect
|
raise Vagrant::Errors::VBoxManageError, :command => command.inspect
|
||||||
end
|
end
|
||||||
|
|
|
@ -387,6 +387,11 @@ en:
|
||||||
|
|
||||||
For more information on the failure, enable detailed logging by setting
|
For more information on the failure, enable detailed logging by setting
|
||||||
the environment variable VAGRANT_LOG to DEBUG.
|
the environment variable VAGRANT_LOG to DEBUG.
|
||||||
|
vboxmanage_not_found_error: |-
|
||||||
|
The "VBoxManage" command or one of its dependencies could not
|
||||||
|
be found. Please verify VirtualBox is properly installed. You can verify
|
||||||
|
everything is okay by running "VBoxManage --version" and verifying
|
||||||
|
that the VirtualBox version is outputted.
|
||||||
virtualbox_invalid_version: |-
|
virtualbox_invalid_version: |-
|
||||||
Vagrant has detected that you have a version of VirtualBox installed
|
Vagrant has detected that you have a version of VirtualBox installed
|
||||||
that is not supported. Please install one of the supported versions
|
that is not supported. Please install one of the supported versions
|
||||||
|
|
Loading…
Reference in New Issue