summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--error.c2
2 files changed, 5 insertions, 1 deletions
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 <shugo@ruby-lang.org>
+
+ * error.c (rb_name_error): raise NameError instead of LoadError.
+
Mon Jul 2 17:22:00 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
* 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);
}