From a217b03952fca6df22ecc62523d9c85883aef856 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 11 Sep 2012 20:59:59 -0400 Subject: Clean up and improve build-error output and logs All logs are now stored from each command executed in Formula.install. Error output is truncated to five lines in an attempt to not overwhelm the user and to encourage users to read the error output and report the bug properly. Maybe we can get that figure up from 70% to 90%. --- Library/ENV/4.3/cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Library/ENV') diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 37ebc0400..b027c789a 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -168,9 +168,10 @@ class Cmd dels = @args - args adds = args - @args dups = dels & args - puts "brew: Superenv removed: #{dels*' '}" unless dels.empty? - puts "brew: Superenv deduped: #{dels}" unless dups.empty? - puts "brew: Superenv added: #{adds*' '}" unless adds.empty? + + STDERR.puts "brew: superenv removed: #{dels*' '}" unless dels.empty? + STDERR.puts "brew: superenv deduped: #{dels}" unless dups.empty? + STDERR.puts "brew: superenv added: #{adds*' '}" unless adds.empty? end end -- cgit v1.2.3