diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/logs-show.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c index d60e5e5308..2ddff15bdb 100644 --- a/src/shared/logs-show.c +++ b/src/shared/logs-show.c @@ -536,6 +536,10 @@ static int output_cat(sd_journal *j, OutputMode mode, unsigned line, r = sd_journal_get_data(j, "MESSAGE", &data, &l); if (r < 0) { + /* An entry without MESSAGE=? */ + if (r == -ENOENT) + return 0; + log_error("Failed to get data: %s", strerror(-r)); return r; } |