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:
commit
127d627218
|
@ -320,7 +320,7 @@ if Vagrant.plugins_enabled?
|
||||||
global_logger.debug("Loading plugin `#{plugin_name}` with slash require: `#{plugin_slash}`")
|
global_logger.debug("Loading plugin `#{plugin_name}` with slash require: `#{plugin_slash}`")
|
||||||
require plugin_slash
|
require plugin_slash
|
||||||
rescue LoadError, Gem::LoadError
|
rescue LoadError, Gem::LoadError
|
||||||
raise load_error
|
global_logger.warn("Failed to load plugin `#{plugin_name}`. Assuming library and moving on.")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue