From 066cfdc1337b9195ba2114b6b377f4b867fdda40 Mon Sep 17 00:00:00 2001 From: shugo Date: Tue, 3 Jul 2001 05:52:20 +0000 Subject: [PATCH] * error.c (rb_name_error): raise NameError instead of LoadError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ error.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 338e6d0e01..df46421bbd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jul 3 14:49:51 2001 Shugo Maeda + + * error.c (rb_name_error): raise NameError instead of LoadError. + Mon Jul 2 17:22:00 2001 Yukihiro Matsumoto * error.c (exc_exception): clone the receiver exception instead of diff --git a/error.c b/error.c index 7f196bad04..f988f387c1 100644 --- a/error.c +++ b/error.c @@ -431,7 +431,7 @@ rb_name_error(id, fmt, va_alist) va_init_list(args, fmt); vsnprintf(buf, BUFSIZ, fmt, args); va_end(args); - exc = rb_exc_new2(rb_eLoadError, buf); + exc = rb_exc_new2(rb_eNameError, buf); rb_iv_set(exc, "name", ID2SYM(id)); rb_exc_raise(exc); }