From b3a729a1073d8f3fcff9ccd8e6f23b3fbafeff65 Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 6 Sep 2003 16:18:02 +0000 Subject: [PATCH] * parse.y (assignable): call rb_compile_error(), not rb_bug(). [ruby-core:01523] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ parse.y | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3ec4f1ad73..540ff70c2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Sep 6 18:45:46 2003 Mauricio Fernandez + + * parse.y (assignable): call rb_compile_error(), not rb_bug(). + [ruby-core:01523] + Sat Sep 6 17:40:41 2003 GOTOU Yuuzou * ext/openssl/ruby_missing.c: rid of unnecessary backward diff --git a/parse.y b/parse.y index 35a94c9e89..259f211beb 100644 --- a/parse.y +++ b/parse.y @@ -4856,7 +4856,7 @@ assignable(id, val) return NEW_CVDECL(id, val); } else { - rb_bug("bad id for variable"); + rb_compile_error("identifier %s is not valid", rb_id2name(id)); } return 0; }