diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-22 14:33:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-22 14:33:58 +0000 |
commit | 2adba2dc5e4bb72bd475b2a07b119901c756388d (patch) | |
tree | 41e78088abd9d8112d2f5c31838a5664a85c4abb /parse.y | |
parent | bd3eb8afec7f814f25827d4c5359a0b3d20a28bf (diff) |
parse.y: append to buffer
* parse.y (reg_compile_gen): always append error message to the
error buffer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -10626,12 +10626,7 @@ reg_compile_gen(struct parser_params* parser, VALUE str, int options) if (NIL_P(re)) { VALUE m = rb_attr_get(rb_errinfo(), idMesg); rb_set_errinfo(err); - if (!NIL_P(err)) { - rb_str_append(rb_str_cat(rb_attr_get(err, idMesg), "\n", 1), m); - } - else { - compile_error(PARSER_ARG "%"PRIsVALUE, m); - } + compile_error(PARSER_ARG "%"PRIsVALUE, m); return Qnil; } return re; |