aboutsummaryrefslogtreecommitdiffstats
path: root/ext/readline/readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/readline/readline.c')
-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 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);