core: Show what machine error messages are for [GH-1668]

This commit is contained in:
Mitchell Hashimoto 2013-09-02 15:53:59 -07:00
parent 896ae7b9ba
commit be25238381
2 changed files with 4 additions and 1 deletions

View File

@ -420,6 +420,7 @@ module Vagrant
level = config_errors.empty? ? :warn : :error level = config_errors.empty? ? :warn : :error
output = Util::TemplateRenderer.render( output = Util::TemplateRenderer.render(
"config/messages", "config/messages",
:name => name,
:warnings => config_warnings, :warnings => config_warnings,
:errors => config_errors).chomp :errors => config_errors).chomp
@ui.send(level, I18n.t("vagrant.general.config_upgrade_messages", @ui.send(level, I18n.t("vagrant.general.config_upgrade_messages",

View File

@ -77,7 +77,9 @@ en:
%{message} %{message}
config_upgrade_messages: |- config_upgrade_messages: |-
There were warnings and/or errors while loading your Vagrantfile. There were warnings and/or errors while loading your Vagrantfile
for the machine '%{name}'.
Your Vagrantfile was written for an earlier version of Vagrant, Your Vagrantfile was written for an earlier version of Vagrant,
and while Vagrant does the best it can to remain backwards and while Vagrant does the best it can to remain backwards
compatible, there are some cases where things have changed compatible, there are some cases where things have changed