Skip to content
Snippets Groups Projects
Commit a03d1308 authored by Max Howell's avatar Max Howell
Browse files

Return non-zero error code on errors

Stupidly I figured Ruby did this for us, but why would it?
parent 2668e2ae
No related branches found
No related tags found
No related merge requests found
......@@ -204,8 +204,10 @@ begin
rescue UsageError
onoe "Invalid usage"
puts ARGV.usage
exit 1
rescue SystemExit
ohai "Kernel.exit" if ARGV.verbose?
exit 1
rescue Interrupt => e
# puts # seemingly a newline is typical
# Above is now commented out because the system() call forks and then forks
......@@ -228,4 +230,5 @@ rescue Exception => e
puts "Mac OS X: "+`sw_vers -productVersion`
ohai e.inspect
puts e.backtrace
exit 1
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment