From a4979c4824354e956370b848ecc6715f25d14cb5 Mon Sep 17 00:00:00 2001 From: Gabor Nagy Date: Mon, 3 Jun 2013 00:04:25 +0200 Subject: [PATCH] [GH-654] Missing condition and translations --- lib/vagrant/util/subprocess.rb | 2 +- templates/locales/en.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/util/subprocess.rb b/lib/vagrant/util/subprocess.rb index c0e776449..c9be8eafe 100644 --- a/lib/vagrant/util/subprocess.rb +++ b/lib/vagrant/util/subprocess.rb @@ -27,7 +27,7 @@ module Vagrant def initialize(*command) @options = command.last.is_a?(Hash) ? command.pop : {} @command = command - @command[0] = Which.which(@command[0]) + @command[0] = Which.which(@command[0]) unless File.exists? @command[0] unless @command[0] raise Errors::CommandUnavailableWindows if Platform.windows? raise Errors::CommandUnavailable diff --git a/templates/locales/en.yml b/templates/locales/en.yml index b5d423b0b..c4963e8b9 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -167,6 +167,8 @@ en: available below. %{help} + command_unavailable: "command binary could not be found. Is this application installed?" + command_unavailable_windows: "command executable not found in any directories in the %PATH% variable." config_invalid: |- There are errors in the configuration of this machine. Please fix the following errors and try again: