journalctl: improve error message when we have trouble reading journal files
authorLennart Poettering <lennart@poettering.net>
Sun, 24 Apr 2016 22:25:04 +0000 (00:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 25 Apr 2016 10:00:03 +0000 (12:00 +0200)
Let's output the actual error code encountered, and let's not claim this was
purely triggered by files, because it can also be triggered by directories.

src/journal/journalctl.c

index c9a2c38..dcd709b 100644 (file)
@@ -1847,7 +1847,7 @@ static int access_check(sd_journal *j) {
                         break;
 
                 default:
-                        log_warning_errno(err, "An error was encountered while opening journal file %s, ignoring file.", path);
+                        log_warning_errno(err, "An error was encountered while opening journal file or directory %s, ignoring file: %m", path);
                         break;
                 }
         }