diff options
author | Colby Swandale <colby@taplaboratories.com> | 2017-05-17 07:53:31 +1000 |
---|---|---|
committer | Colby Swandale <colby@taplaboratories.com> | 2017-05-17 07:53:31 +1000 |
commit | 7a47ace072df309b7fd8020bce1ef56548ba2cce (patch) | |
tree | 37cb52ec0aa76e03ee951f9ababc8c994934e2b9 /lib/bundler/ui/shell.rb | |
parent | 474996bd826f173e00cbcd1729068997b7477f5e (diff) | |
download | bundler-7a47ace072df309b7fd8020bce1ef56548ba2cce.tar.gz |
fix not checking error level before printing to stderr
Diffstat (limited to 'lib/bundler/ui/shell.rb')
-rw-r--r-- | lib/bundler/ui/shell.rb | 3 |
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) |