diff options
author | corvid <corvid@lavabit.com> | 2012-09-24 20:25:30 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2012-09-24 20:25:30 +0000 |
commit | d471dfd4da734cae7917c9744018806c18ddb39c (patch) | |
tree | ca8e13993e8e2884b02d52605b76aa2e4d6e1819 | |
parent | 0f7f3661a398690e0779928c18583ce810d1fc7b (diff) |
dStrerror() for Paths::getPrefsFP()
-rw-r--r-- | src/paths.cc | 4 |
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); |