summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-04-23 23:43:35 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-04-23 23:43:35 +0000
commita3fe078ecd0d45733001f574d125859c9b244a32 (patch)
tree1cb7e738a0a995df05a4926187f6df776f25ef85 /doio.c
parentf5c3b20eebd364882ada5065566f485c4ebfce4b (diff)
downloadperl-a3fe078ecd0d45733001f574d125859c9b244a32.tar.gz
Make the "STD* opened only for ..." errors more consistent.
p4raw-id: //depot/perl@9802
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/doio.c b/doio.c
index f65f2867fb..d61d533eff 100644
--- a/doio.c
+++ b/doio.c
@@ -504,11 +504,13 @@ Perl_do_openn(pTHX_ GV *gv, register char *name, I32 len, int as_raw,
if (ckWARN(WARN_IO)) {
if ((IoTYPE(io) == IoTYPE_RDONLY) &&
(fp == PerlIO_stdout() || fp == PerlIO_stderr())) {
- Perl_warner(aTHX_ WARN_IO, "'std%s' opened only for input",
- (fp == PerlIO_stdout()) ? "out" : "err");
+ Perl_warner(aTHX_ WARN_IO,
+ "Filehandle STD%s opened only for input",
+ (fp == PerlIO_stdout()) ? "OUT" : "ERR");
}
else if ((IoTYPE(io) == IoTYPE_WRONLY) && fp == PerlIO_stdin()) {
- Perl_warner(aTHX_ WARN_IO, "'stdin' opened only for output");
+ Perl_warner(aTHX_ WARN_IO,
+ "Filehandle STDIN opened only for output");
}
}