Skip to content

Commit

Permalink
* error.c (rb_name_error): raise NameError instead of LoadError.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shugo committed Jul 3, 2001
1 parent ffe1cf5 commit 066cfdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Tue Jul 3 14:49:51 2001 Shugo Maeda <[email protected]>

* error.c (rb_name_error): raise NameError instead of LoadError.

Mon Jul 2 17:22:00 2001 Yukihiro Matsumoto <[email protected]>

* error.c (exc_exception): clone the receiver exception instead of
Expand Down
2 changes: 1 addition & 1 deletion error.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 066cfdc

Please sign in to comment.