[Rake-devel] exit 1 on SystemExit

Stephen Touset stephen at touset.org
Mon May 21 19:15:42 EDT 2007

It would be a lot more useful, I think, if rake detected a SystemExit
and then exited with the status in the exception, rather than just doing
an exit(1).

Specifically, I'm doing an early exit in one of my rake tasks where I
need to return a 0 exit code. Rake intercepts this SystemExit and always
returns a 1, regardless of the status.

The patch for this is trivial, and included.

Stephen Touset <stephen at touset.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rake.patch
Type: text/x-patch
Size: 513 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rake-devel/attachments/20070521/09911054/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://rubyforge.org/pipermail/rake-devel/attachments/20070521/09911054/attachment-0001.bin 

More information about the Rake-devel mailing list