diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/utils.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 208a01e8e..976adaa3a 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -34,7 +34,9 @@ def opoo warning end def onoe error - puts "\033[1;31m==>\033[0;0;1m Error\033[0;0m: #{error}" + lines = error.to_s.split'\n' + puts "\033[1;31m==>\033[0;0;1m Error\033[0;0m: #{lines.shift}" + puts *lines unless lines.empty? end def pretty_duration s |
