From 8db23b37400493071ce7599f90474f6ea1a26761 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 28 Feb 2005 02:45:23 +0000 Subject: * exception error messages updated. [ruby-core:04497] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index 763697b2f..9e167f617 100644 --- a/ruby.c +++ b/ruby.c @@ -726,7 +726,7 @@ proc_options(argc, argv) } if (!*s) break; if (!strchr("IdvwrK", *s)) - rb_raise(rb_eRuntimeError, "Illegal switch in RUBYOPT: -%c", *s); + rb_raise(rb_eRuntimeError, "illegal switch in RUBYOPT: -%c", *s); s = moreswitches(s); } } @@ -853,7 +853,7 @@ load_file(fname, script) } } } - rb_raise(rb_eLoadError, "No Ruby script found in input"); + rb_raise(rb_eLoadError, "no Ruby script found in input"); } c = rb_io_getc(f); @@ -1046,11 +1046,11 @@ forbid_setid(s) const char *s; { if (euid != uid) - rb_raise(rb_eSecurityError, "No %s allowed while running setuid", s); + rb_raise(rb_eSecurityError, "no %s allowed while running setuid", s); if (egid != gid) - rb_raise(rb_eSecurityError, "No %s allowed while running setgid", s); + rb_raise(rb_eSecurityError, "no %s allowed while running setgid", s); if (rb_safe_level() > 0) - rb_raise(rb_eSecurityError, "No %s allowed in tainted mode", s); + rb_raise(rb_eSecurityError, "no %s allowed in tainted mode", s); } static void -- cgit