1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-09 13:57:42 +03:00

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.
This commit is contained in:
Lennart Poettering 2016-04-25 00:25:04 +02:00
parent f637726130
commit 0f7488722d

View 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;
}
}