Show exit status properly

Turns out $?.to_i is a 16bit int with some bit flags in the first byte.
This commit is contained in:
Max Howell 2009-12-02 13:07:03 +00:00
parent c76e0156d7
commit dd0df9bd37

View File

@ -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