aboutsummaryrefslogtreecommitdiffstats
path: root/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'load.c')
-rw-r--r--load.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/load.c b/load.c
index 82bf07c306..3cf9ce0aba 100644
--- a/load.c
+++ b/load.c
@@ -1040,6 +1040,7 @@ rb_require_safe(VALUE fname, int safe)
int result = rb_require_internal(fname, safe);
if (result > TAG_RETURN) {
+ if (result == TAG_RAISE) rb_exc_raise(rb_errinfo());
JUMP_TAG(result);
}
if (result < 0) {