diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-11-02 05:29:22 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-11-02 05:29:22 +0000 |
commit | 1d939538eb7f21545b7d0af71f96fc812a340670 (patch) | |
tree | 563b426b2646cc333ad53625a79494c588c35f8a /src/conf.c | |
parent | 46792b175f3ef496a2247a89404b9d06ffe53688 (diff) | |
download | mpd-1d939538eb7f21545b7d0af71f96fc812a340670.tar.gz mpd-1d939538eb7f21545b7d0af71f96fc812a340670.tar.xz mpd-1d939538eb7f21545b7d0af71f96fc812a340670.zip |
a few extra strerror()'s sprinkled in the code
git-svn-id: https://svn.musicpd.org/mpd/trunk@2467 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/conf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/conf.c b/src/conf.c index 72bec5623..8fb50e7e4 100644 --- a/src/conf.c +++ b/src/conf.c @@ -31,6 +31,7 @@ #include <unistd.h> #include <sys/types.h> #include <pwd.h> +#include <errno.h> #define MAX_STRING_SIZE MAXPATHLEN+80 @@ -228,7 +229,8 @@ void readConf(char * file) { ConfigParam * param; if(!(fp=fopen(file,"r"))) { - ERROR("problems opening file %s for reading\n",file); + ERROR("problems opening file %s for reading: %s\n", file, + strerror(errno)); exit(EXIT_FAILURE); } |