aboutsummaryrefslogtreecommitdiffstats
path: root/load.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-06 08:29:46 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-06 08:29:46 +0000
commitbad843bcb0146c78ae8309c2f05b07edac892e9d (patch)
tree751de54e0a0e31ca089bdc33b1f1e56439c107b7 /load.c
parent2644742060e37e57279914237c0241c28d555773 (diff)
downloadruby-bad843bcb0146c78ae8309c2f05b07edac892e9d.tar.gz
load.c: setup syntax error backtrace
* 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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56363 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 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) {