summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-17 17:55:39 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-17 17:55:39 +0000
commit10555f93fb7c9db39964122b8f6679897eb9655a (patch)
tree4cb126bb3352126b2cb8cbcb2f4268e777167a0e /load.c
parent7c0c4c8e5e842d355b61cf9afc5cd6e838718b64 (diff)
merge revision(s) 56363,56365: [Backport #12811]
* load.c (rb_require_safe): SyntaxError created by the parser just has the mesage and needs to set up the backtrace. [ruby-core:77491] [Bug #12811] has the message and needs to set up the backtrace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@56439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 4558e2c6fd..70c734595e 100644
--- a/load.c
+++ b/load.c
@@ -1043,6 +1043,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) {