summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-10-31 12:00:56 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-10-31 12:03:51 +0100
commitb8cd6ece7bfc883cc0661fe4b2122e7fdbd49eac (patch)
treed3fd2e5d654eddeebd4e46dfaf5fbc86268d1307
parent1b89f68a38f51f422481c2f7921d104c93f69e15 (diff)
downloadbundler-no_silent_output_by_default.tar.gz
Respect log level when showing GemRequireError'sno_silent_output_by_default
-rw-r--r--lib/bundler/friendly_errors.rb2
-rw-r--r--spec/bundler/friendly_errors_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/friendly_errors.rb b/lib/bundler/friendly_errors.rb
index e9f06d90be..273573e820 100644
--- a/lib/bundler/friendly_errors.rb
+++ b/lib/bundler/friendly_errors.rb
@@ -16,7 +16,7 @@ module Bundler
Bundler.ui.error error.message
when GemRequireError
Bundler.ui.error error.message
- Bundler.ui.trace error.orig_exception, nil, true
+ Bundler.ui.trace error.orig_exception
when BundlerError
Bundler.ui.error error.message, :wrap => true
Bundler.ui.trace error
diff --git a/spec/bundler/friendly_errors_spec.rb b/spec/bundler/friendly_errors_spec.rb
index 858831c448..47e7a5d3cd 100644
--- a/spec/bundler/friendly_errors_spec.rb
+++ b/spec/bundler/friendly_errors_spec.rb
@@ -94,7 +94,7 @@ RSpec.describe Bundler, "friendly errors" do
end
it "writes to Bundler.ui.trace" do
- expect(Bundler.ui).to receive(:trace).with(orig_error, nil, true)
+ expect(Bundler.ui).to receive(:trace).with(orig_error)
Bundler::FriendlyErrors.log_error(error)
end
end