summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-26 05:01:13 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-26 05:01:13 +0000
commit13e9c5ed18e15a856c09c684b87a415c450bc9a3 (patch)
treedc3b4e54fb7a6e6bd9647440009931f8c1d6a230 /eval.c
parent8d68de248204d8e7db68cb62410fc6d70f070994 (diff)
* eval.c (method_missing): raise TypeError for classes do not
have allocators. [ruby-core:03752] * lib/erb.rb: [ruby-core:03786] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index d7d6477022..a0c8e7b5fc 100644
--- a/eval.c
+++ b/eval.c
@@ -5352,7 +5352,7 @@ method_missing(obj, id, argc, argv, call_status)
POP_FRAME();
}
else if (id == ID_ALLOCATOR) {
- rb_raise(rb_eNoMethodError, "allocator undefined for %s", rb_class2name(obj));
+ rb_raise(rb_eTypeError, "allocator undefined for %s", rb_class2name(obj));
}
nargv = ALLOCA_N(VALUE, argc+1);