summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 02:31:11 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-21 02:31:11 +0000
commit4cf437519f1cbefed5ad7ee2bf0e68857105823f (patch)
tree735cc60c2165cefab0d4cf11cd399e73f8c47f82 /io.c
parent817a4e3c83fd830b93c286159e97a18654db1c35 (diff)
downloadruby-4cf437519f1cbefed5ad7ee2bf0e68857105823f.tar.gz
* regerror.c, string.c, io.c, lib/getoptlong.rb, lib/net/imap.rb,
compile.c, sprintf.c, parse.y, ext/win32ole/win32ole.c, ext/tk/sample/demos-en/entry3.rb, ext/tk/lib/tcltk.rb, ext/openssl/ossl_bn.c, numeric.c, vm.c, benchmark/bm_so_meteor_contest.rb, bignum.c, ruby.c: don't "illegal" for non law violation context. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/io.c b/io.c
index 1a59cf2001..e07845fb31 100644
--- a/io.c
+++ b/io.c
@@ -2906,7 +2906,7 @@ rb_io_flags_mode(int flags)
}
return MODE_BINMODE("r+", "rb+");
}
- rb_raise(rb_eArgError, "illegal access modenum %o", flags);
+ rb_raise(rb_eArgError, "invalid access modenum %o", flags);
return NULL; /* not reached */
}
@@ -2928,7 +2928,7 @@ rb_io_mode_flags(const char *mode)
break;
default:
error:
- rb_raise(rb_eArgError, "illegal access mode %s", mode);
+ rb_raise(rb_eArgError, "invalid access mode %s", mode);
}
while (*m) {
@@ -2999,7 +2999,7 @@ rb_io_mode_modenum(const char *mode)
break;
default:
error:
- rb_raise(rb_eArgError, "illegal access mode %s", mode);
+ rb_raise(rb_eArgError, "invalid access mode %s", mode);
}
while (*m) {
@@ -3046,7 +3046,7 @@ rb_io_modenum_mode(int flags)
case O_RDWR:
return MODE_BINARY("r+", "rb+");
}
- rb_raise(rb_eArgError, "illegal access modenum %o", flags);
+ rb_raise(rb_eArgError, "invalid access modenum %o", flags);
return NULL; /* not reached */
}