summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-error
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-06-16 09:15:07 +0900
committerGitHub <[email protected]>2021-06-16 09:15:07 +0900
commit2341e4f5e59bd69aef02a048176d3228cddc293f (patch)
tree99253982cd7b6f8b5bb7ce4672c0327a2465fcb5 /mrbgems/mruby-error
parent651c234f9c7097b6a2515f812a782af13b4b67d8 (diff)
parentdab5502e8a16d34d29adee6f7f9cb4f4ae0dfd68 (diff)
downloadmruby-2341e4f5e59bd69aef02a048176d3228cddc293f.tar.gz
mruby-2341e4f5e59bd69aef02a048176d3228cddc293f.zip
Merge pull request #5445 from jbampton/add-codespell-pre-commit-hook
Run pre-commit with GitHub Actions
Diffstat (limited to 'mrbgems/mruby-error')
-rw-r--r--mrbgems/mruby-error/src/exception.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-error/src/exception.c b/mrbgems/mruby-error/src/exception.c
index ca26b8819..ffa7d53bf 100644
--- a/mrbgems/mruby-error/src/exception.c
+++ b/mrbgems/mruby-error/src/exception.c
@@ -31,7 +31,7 @@ mrb_ensure(mrb_state *mrb, mrb_func_t body, mrb_value b_data, mrb_func_t ensure,
mrb_gc_arena_restore(mrb, ai);
mrb_gc_protect(mrb, result);
if (error) {
- mrb_exc_raise(mrb, result); /* rethrow catched exceptions */
+ mrb_exc_raise(mrb, result); /* rethrow caught exceptions */
}
return result;
}