summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-13 01:59:02 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-13 01:59:02 +0000
commit4190b3c055ea869b3d94b56307bd86c2fc264014 (patch)
tree6a4fbb7710f30f680850d6b677ecf91c9daa626c /ext
parent77e495da3c9713100aa384982e08c73ecc2f57eb (diff)
merges r20663 from trunk into ruby_1_9_1.
* ext/readline/readline.c (readline_readline): changed the message of IOError to 'closed stdin' from 'stdin closed' if stdin was closed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/readline/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index 5e30aa3046..6100633f20 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -223,7 +223,7 @@ readline_readline(int argc, VALUE *argv, VALUE self)
prompt = RSTRING_PTR(tmp);
}
- if (!isatty(0) && errno == EBADF) rb_raise(rb_eIOError, "stdin closed");
+ if (!isatty(0) && errno == EBADF) rb_raise(rb_eIOError, "closed stdin");
buff = (char*)rb_protect((VALUE(*)_((VALUE)))readline, (VALUE)prompt,
&status);