[前][次][番号順一覧][スレッド一覧]

ruby-changes:44402

From: nobu <ko1@a...>
Date: Sat, 22 Oct 2016 23:34:04 +0900 (JST)
Subject: [ruby-changes:44402] nobu:r56475 (trunk): parse.y: append to buffer

nobu	2016-10-22 23:33:58 +0900 (Sat, 22 Oct 2016)

  New Revision: 56475

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56475

  Log:
    parse.y: append to buffer
    
    * parse.y (reg_compile_gen): always append error message to the
      error buffer.

  Modified files:
    trunk/ChangeLog
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 56474)
+++ parse.y	(revision 56475)
@@ -10626,12 +10626,7 @@ reg_compile_gen(struct parser_params* pa https://github.com/ruby/ruby/blob/trunk/parse.y#L10626
     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;
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 56474)
+++ ChangeLog	(revision 56475)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Oct 22 23:33:55 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* parse.y (reg_compile_gen): always append error message to the
+	  error buffer.
+
 Sat Oct 22 22:33:32 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* numeric.c (num_funcall1): check recursion by inverse pair, to

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]