aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2009-12-02 13:07:03 +0000
committerMax Howell2009-12-02 13:07:03 +0000
commitdd0df9bd3714c2a087fa8d85d7c2684d5736d379 (patch)
tree8916d93e7eb7412273f1de076a1fbff01be39e7c /bin
parentc76e0156d78093fe82d2b9982f39b7203625ea26 (diff)
downloadbrew-dd0df9bd3714c2a087fa8d85d7c2684d5736d379.tar.bz2
Show exit status properly
Turns out $?.to_i is a 16bit int with some bit flags in the first byte.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 10c156df9..a3a65ebdc 100755
--- a/bin/brew
+++ b/bin/brew
@@ -310,7 +310,7 @@ rescue BuildError => e
puts e.backtrace[1]
ohai "Environment"
dump_config
- puts "Exit status: #{e.status}"
+ puts "Exit status: #{e.status.exitstatus}"
onoe e
puts PLEASE_REPORT_BUG
exit 1