summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-error/src
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgems/mruby-error/src')
-rw-r--r--mrbgems/mruby-error/src/exception.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-error/src/exception.c b/mrbgems/mruby-error/src/exception.c
index 9d77c6adf..911fde0be 100644
--- a/mrbgems/mruby-error/src/exception.c
+++ b/mrbgems/mruby-error/src/exception.c
@@ -17,6 +17,7 @@ mrb_protect(mrb_state *mrb, mrb_func_t body, mrb_value data, mrb_bool *state)
mrb->jmp = prev_jmp;
} MRB_CATCH(&c_jmp) {
mrb->jmp = prev_jmp;
+ result = mrb_obj_value(mrb->exc);
mrb->exc = NULL;
if (state) { *state = TRUE; }
} MRB_END_EXC(&c_jmp);