aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-11-02 05:29:22 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-11-02 05:29:22 +0000
commit1d939538eb7f21545b7d0af71f96fc812a340670 (patch)
tree563b426b2646cc333ad53625a79494c588c35f8a /src/conf.c
parent46792b175f3ef496a2247a89404b9d06ffe53688 (diff)
downloadmpd-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 'src/conf.c')
-rw-r--r--src/conf.c4
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);
}