From 1e879eaee8815eebd3bc3f5318f62d1e86b4d62a Mon Sep 17 00:00:00 2001 From: Max Howell Date: Fri, 6 Nov 2009 17:06:12 +0000 Subject: Propagate exit status in ExecutioError exception --- bin/brew | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/brew b/bin/brew index cebc147de..e926d392f 100755 --- a/bin/brew +++ b/bin/brew @@ -70,8 +70,8 @@ EOS end def please_report_bug; <<-EOS -Please report this bug to #{HOMEBREW_WWW} including the following information: -Mac OS X: #{MACOS_VERSION} +Please report this bug to #{HOMEBREW_WWW} +Mac OS X: #{MACOS_FULL_VERSION} Ponk: #{macports_or_fink_installed?} EOS end @@ -263,7 +263,10 @@ rescue SystemCallError, RuntimeError => e puts e.backtrace else onoe e - puts please_report_bug if e.kind_of? BuildError + if e.kind_of? BuildError + puts please_report_bug + puts "Exit Status: #{e.status}" + end end exit 1 rescue Exception => e -- cgit v1.2.3