aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-02-03 02:55:59 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-02-03 02:55:59 +0000
commitd0c2c187633fa906eee672c21f46a2ac68148d15 (patch)
treefc51a3d3a52c16d7edc82f1a388f4107ea238d95 /rcfile_y.y
parentb7406a23e1b4e9279e7bffd88352a20574a45f62 (diff)
downloadfetchmail-d0c2c187633fa906eee672c21f46a2ac68148d15.tar.gz
fetchmail-d0c2c187633fa906eee672c21f46a2ac68148d15.tar.bz2
fetchmail-d0c2c187633fa906eee672c21f46a2ac68148d15.zip
Simplify error reporting further.
svn path=/trunk/; revision=2374
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index a5e323d6..d688198c 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -375,7 +375,7 @@ int prc_filecheck(const char *pathname, const flag securecheck)
if (errno == ENOENT)
return(PS_SUCCESS);
else {
- report(stderr, errno, "lstat: %s\n", pathname);
+ report(stderr, "lstat: %s: %s\n", pathname, strerror(errno));
return(PS_IOERR);
}
}
@@ -423,7 +423,7 @@ int prc_parse_file (const char *pathname, const flag securecheck)
if (strcmp(pathname, "-") == 0)
yyin = stdin;
else if ((yyin = fopen(pathname,"r")) == (FILE *)NULL) {
- report(stderr, errno, "open: %s\n", pathname);
+ report(stderr, "open: %s: %s\n", pathname, strerror(errno));
return(PS_IOERR);
}