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