aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2012-09-24 20:25:30 +0000
committercorvid <corvid@lavabit.com>2012-09-24 20:25:30 +0000
commitd471dfd4da734cae7917c9744018806c18ddb39c (patch)
treeca8e13993e8e2884b02d52605b76aa2e4d6e1819
parent0f7f3661a398690e0779928c18583ce810d1fc7b (diff)
dStrerror() for Paths::getPrefsFP()
-rw-r--r--src/paths.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/paths.cc b/src/paths.cc
index 6fccb89a..32478728 100644
--- a/src/paths.cc
+++ b/src/paths.cc
@@ -83,11 +83,11 @@ FILE *Paths::getPrefsFP(const char *rcFile)
char *path = dStrconcat(dGethomedir(), "/.dillo/", rcFile, NULL);
if (!(fp = fopen(path, "r"))) {
- MSG("paths: Cannot open file '%s'\n", path);
+ MSG("paths: Cannot open file '%s': %s\n", path, dStrerror(errno));
char *path2 = dStrconcat(DILLO_SYSCONF, rcFile, NULL);
if (!(fp = fopen(path2, "r"))) {
- MSG("paths: Cannot open file '%s'\n",path2);
+ MSG("paths: Cannot open file '%s': %s\n", path2, dStrerror(errno));
MSG("paths: Using internal defaults...\n");
} else {
MSG("paths: Using %s\n", path2);