Ticket #557 (closed defect: fixed)
Ruby exceptions aren't catched when calling at_exit block
| Reported by: | eloy.de.enige@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.6 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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'
Change History
Note: See
TracTickets for help on using
tickets.

