aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-10-01 15:41:15 +0100
committerMax Howell2009-10-01 15:48:51 +0100
commit5c33fdfb5b9ab49551fad04a235a529e4114f34b (patch)
tree6f997ab2835c015b40140c73078f242b77f48228 /Library
parentdb2ccd294dbf4f5e0860624887e9ecc215e08577 (diff)
downloadbrew-5c33fdfb5b9ab49551fad04a235a529e4114f34b.tar.bz2
If an exception has newlines, render them well
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb4
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