From 8771463957f0fc12458aea8cc549d95183e4ee05 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Thu, 25 May 2023 11:58:32 +0200 Subject: [PATCH] sd-journal: log about errors from ordered_hashmap_*() Follow-up to 08a8fd6e8d. --- src/libsystemd/sd-journal/catalog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsystemd/sd-journal/catalog.c b/src/libsystemd/sd-journal/catalog.c index 06cf396b959..f490e21490e 100644 --- a/src/libsystemd/sd-journal/catalog.c +++ b/src/libsystemd/sd-journal/catalog.c @@ -172,7 +172,7 @@ static int finish_item( r = ordered_hashmap_update(h, i, combined); if (r < 0) - return r; + return log_error_errno(r, "Failed to update catalog item: %m"); TAKE_PTR(combined); free(prev); @@ -184,7 +184,7 @@ static int finish_item( r = ordered_hashmap_put(h, i, combined); if (r < 0) - return r; + return log_error_errno(r, "Failed to insert catalog item: %m"); TAKE_PTR(i); TAKE_PTR(combined); -- 2.47.3