aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2009-11-06 17:06:12 +0000
committerMax Howell2009-11-07 18:22:36 +0000
commit1e879eaee8815eebd3bc3f5318f62d1e86b4d62a (patch)
tree2ef5b9b6507c4d763c425c5e125bd337a2d0283b /bin
parent0ec10c68ca93c86c61463349e455cd4179b64e16 (diff)
downloadbrew-1e879eaee8815eebd3bc3f5318f62d1e86b4d62a.tar.bz2
Propagate exit status in ExecutioError exception
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew9
1 files changed, 6 insertions, 3 deletions
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