From 288ceaeec2077d06df3ba46bca97960f76f283e1 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 17 Nov 2004 02:27:38 +0000 Subject: * re.c (rb_reg_initialize_m): should raise exception instead of compile error. [ruby-core:03755] * string.c (rb_str_splice): move rb_str_modify() after StringValue(), which may alter the receiver. [ruby-dev:24878] * error.c (rb_error_frozen): now raise RuntimeError instead of TypeError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'error.c') diff --git a/error.c b/error.c index ebc431107b..0d16ec3cb1 100644 --- a/error.c +++ b/error.c @@ -1208,7 +1208,7 @@ void rb_error_frozen(what) const char *what; { - rb_raise(rb_eTypeError, "can't modify frozen %s", what); + rb_raise(rb_eRuntimeError, "can't modify frozen %s", what); } void -- cgit v1.2.3