зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
ffe1cf575e
Коммит
066cfdc133
|
@ -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
|
||||
|
|
2
error.c
2
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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче