Only show error if exit code != 0 of gem
This commit is contained in:
parent
fa50f06a4c
commit
150cae86b7
|
@ -33,7 +33,8 @@ module VagrantPlugins
|
||||||
# This means that something forced an exit within RubyGems.
|
# This means that something forced an exit within RubyGems.
|
||||||
# We capture this to check whether it succeeded or not by
|
# We capture this to check whether it succeeded or not by
|
||||||
# checking the "exit_code"
|
# checking the "exit_code"
|
||||||
raise Vagrant::Errors::PluginGemError, :output => gem_ui.errs.string.chomp if e != 0
|
raise Vagrant::Errors::PluginGemError,
|
||||||
|
:output => gem_ui.errs.string.chomp if e.exit_code != 0
|
||||||
ensure
|
ensure
|
||||||
# Restore the old GEM_HOME
|
# Restore the old GEM_HOME
|
||||||
ENV["GEM_HOME"] = old_gem_home
|
ENV["GEM_HOME"] = old_gem_home
|
||||||
|
|
Loading…
Reference in New Issue