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
commita997d2c4a512e0ad08d51768dbeb1550e4d3d0ea (patch)
treeb144383a794694bd52d5b3e1bfe9f78b4ea7bba6 /bin
parentf946b720423a32123d7bea61d699640f86bc33a3 (diff)
downloadhomebrew-a997d2c4a512e0ad08d51768dbeb1550e4d3d0ea.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