summaryrefslogtreecommitdiff
path: root/src/journal/journalctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-04-25 00:25:04 +0200
committerLennart Poettering <lennart@poettering.net>2016-04-25 12:00:03 +0200
commit0f7488722d9ef97cb5d036575f4c312a00bb702f (patch)
tree0dbeba83c6f4f66a92485458492b317e4843a0da /src/journal/journalctl.c
parentf63772613098f57fdeeef603791e9d5faa4f0790 (diff)
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.
Diffstat (limited to 'src/journal/journalctl.c')
-rw-r--r--src/journal/journalctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
index c9a2c3812d..dcd709bd79 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;
}
}