From d471dfd4da734cae7917c9744018806c18ddb39c Mon Sep 17 00:00:00 2001 From: corvid Date: Mon, 24 Sep 2012 20:25:30 +0000 Subject: dStrerror() for Paths::getPrefsFP() --- src/paths.cc | 4 ++-- 1 file 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); -- cgit v1.2.3