summaryrefslogtreecommitdiffstats
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
commitad398438953280fa77f15f1e9471bf02527fa447 (patch)
tree6a4fbb7710f30f680850d6b677ecf91c9daa626c /ext
parente9ec4984cd7d5e37d315704b633609326520ab5e (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: http://svn.ruby-lang.org/repos/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 5e30aa304..6100633f2 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);