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
commit99b018121443c9a510c5d55cfb019b0deed3dd88 (patch)
treea21b5f332f424174dcf544b8c545a213ed91a564 /Library
parente0345e0d4f8ca6d31fd556c9ad7c9b9960370ba8 (diff)
downloadhomebrew-99b018121443c9a510c5d55cfb019b0deed3dd88.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