Skip to content

Commit

Permalink
Change to return the exception object when an exception occurred in m…
Browse files Browse the repository at this point in the history
…rb_funcall
  • Loading branch information
takkaw committed Mar 29, 2013
1 parent 6818ec0 commit f36c133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm.c
Expand Up @@ -302,7 +302,7 @@ mrb_funcall_with_block(mrb_state *mrb, mrb_value self, mrb_sym mid, int argc, mr
cipop(mrb);
}
mrb->jmp = 0;
val = mrb_nil_value();
val = mrb_obj_value(mrb->exc);
}
else {
mrb->jmp = &c_jmp;
Expand Down

0 comments on commit f36c133

Please sign in to comment.