From 74ea7d93c13af0e87ab76b29c52dbdbb6ac3dbc0 Mon Sep 17 00:00:00 2001 From: kouji Date: Fri, 12 Dec 2008 10:17:01 +0000 Subject: * 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/trunk@20663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/readline/readline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/readline') diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 264f40fa81..90fd8a9496 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); -- cgit v1.2.3