More gracefully handled plugins which cannot be found

This commit is contained in:
Mitchell Hashimoto 2013-02-07 11:43:35 -08:00
parent 429246c4a2
commit 4144db5042
1 changed files with 3 additions and 1 deletions

View File

@ -617,8 +617,10 @@ module Vagrant
@logger.info("Loading plugin from JSON: #{plugin}")
begin
Vagrant.require_plugin(plugin)
rescue Errors::PluginLoadError => e
@ui.error(e.message + "\n")
rescue Errors::PluginLoadFailed => e
@ui.error(e.message)
@ui.error(e.message + "\n")
end
end
end