summaryrefslogtreecommitdiff
path: root/lib/bundler/ui/shell.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/ui/shell.rb')
-rw-r--r--lib/bundler/ui/shell.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/ui/shell.rb b/lib/bundler/ui/shell.rb
index 56b4b2e7f4..98c3206337 100644
--- a/lib/bundler/ui/shell.rb
+++ b/lib/bundler/ui/shell.rb
@@ -36,8 +36,9 @@ module Bundler
end
def error(msg, newline = nil)
+ return unless level("error")
return tell_err(msg, :red, newline) if Bundler.feature_flag.stderr?
- tell_me(msg, :red, newline) if level("error")
+ tell_me(msg, :red, newline)
end
def debug(msg, newline = nil)