diff --git a/lib/vagrant/actions/base.rb b/lib/vagrant/actions/base.rb index 4c920f24b..c8a381a9c 100644 --- a/lib/vagrant/actions/base.rb +++ b/lib/vagrant/actions/base.rb @@ -110,7 +110,7 @@ module Vagrant @key = key @data = data - message = Vagrant::Util::Errors.error_string(key, data) + message = Vagrant::Util::Translator.t(key, data) super(message) end end diff --git a/lib/vagrant/util.rb b/lib/vagrant/util.rb index ed917109d..d13879696 100644 --- a/lib/vagrant/util.rb +++ b/lib/vagrant/util.rb @@ -15,7 +15,7 @@ module Vagrant ===================================================================== Vagrant experienced an error! -#{Errors.error_string(key, data).chomp} +#{Translator.error_string(key, data).chomp} ===================================================================== error end diff --git a/lib/vagrant/util/errors.rb b/lib/vagrant/util/errors.rb deleted file mode 100644 index 124a69f04..000000000 --- a/lib/vagrant/util/errors.rb +++ /dev/null @@ -1,36 +0,0 @@ -require 'yaml' - -module Vagrant - module Util - # This class is responsible for outputting errors. It retrieves the errors, - # based on their key, from the error file, and then outputs it. - class Errors - @@errors = nil - - class <