From: Lennart Poettering Date: Sun, 24 Apr 2016 22:25:04 +0000 (+0200) Subject: journalctl: improve error message when we have trouble reading journal files X-Git-Tag: v230~133^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f7488722d9ef97cb5d036575f4c312a00bb702f;p=thirdparty%2Fsystemd.git journalctl: improve error message when we have trouble reading journal files 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. --- diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index c9a2c3812dc..dcd709bd792 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -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; } }