#557: Ruby exceptions aren't cached when calling at_exit block -------------------------------------+-------------------------------------- Reporter: eloy.de.en...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------------+-------------------------------------- As can be seen with the following example:
{{{ macruby -e "at_exit { raise 'Ohnoesmacruby t.rb' }; require 'doesnotexist'" }}} Which results in: {{{ -e:in `<main>': no such file to load -- doesnotexist (LoadError) 2010-01-13 19:15:33.551 macruby[34637:903] *** Terminating app due to uncaught exception 'RuntimeError', reason: 'Ohnoesmacruby t.rb' *** Call stack at first throw: ( 0 CoreFoundation 0x00007fff86bb05a4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x00007fff81558313 objc_exception_throw + 45 2 libmacruby.dylib 0x00000001001813fb rb_vm_raise + 443 3 libmacruby.dylib 0x0000000100041bfb rb_f_raise + 43 4 libmacruby.dylib 0x000000010016d977 rb_vm_dispatch + 6647 5 ??? 0x00000001011101a1 0x0 + 4312859041 6 libmacruby.dylib 0x0000000100040e25 ruby_finalize + 69 7 libmacruby.dylib 0x00000001000a7810 rb_exit + 16 8 macruby 0x0000000100000df6 main + 182 9 macruby 0x0000000100000d34 start + 52 ) terminate called after throwing an instance of 'NSException' }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/557> MacRuby <http://macruby.org/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel