Merge pull request #8400 from chrisroberts/plugins/warn-on-load-fail

Warn when failing to require plugin instead of hard failure
This commit is contained in:
Chris Roberts 2017-03-23 09:44:32 -07:00 committed by GitHub
commit 127d627218
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ if Vagrant.plugins_enabled?
global_logger.debug("Loading plugin `#{plugin_name}` with slash require: `#{plugin_slash}`")
require plugin_slash
rescue LoadError, Gem::LoadError
raise load_error
global_logger.warn("Failed to load plugin `#{plugin_name}`. Assuming library and moving on.")
end
end
end