summaryrefslogtreecommitdiffstats
path: root/ext/readline
diff options
context:
space:
mode:
authorkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-12 10:17:01 +0000
committerkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-12 10:17:01 +0000
commitd4227d2e729ccee99b331a91b9e55ff68c1b551e (patch)
tree7b6149a306e65a6cac052b99beb9fb9911e531b7 /ext/readline
parente259691d84d99755a3bcdf1f4180527f215d9fdb (diff)
downloadruby-d4227d2e729ccee99b331a91b9e55ff68c1b551e.tar.gz
ruby-d4227d2e729ccee99b331a91b9e55ff68c1b551e.tar.xz
ruby-d4227d2e729ccee99b331a91b9e55ff68c1b551e.zip
* 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/trunk@20663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-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 264f40fa8..90fd8a949 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -218,7 +218,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);