diff options
| author | Max Howell | 2009-09-23 09:32:04 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-24 18:26:24 +0100 |
| commit | a03d13088f7e5f6dfe1d4d6518d2399172d40a2f (patch) | |
| tree | b4c638670df41393cf93af9959db08bee848a7e7 | |
| parent | 2668e2aeffb6c77cf29cec01b5c02a3077133227 (diff) | |
| download | brew-a03d13088f7e5f6dfe1d4d6518d2399172d40a2f.tar.bz2 | |
Return non-zero error code on errors
Stupidly I figured Ruby did this for us, but why would it?
| -rwxr-xr-x | bin/brew | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
