From c1a1f6a01eb299980f0181cbd1aec859ca69ec23 Mon Sep 17 00:00:00 2001 From: James Houlahan Date: Tue, 21 Feb 2023 10:53:04 +0100 Subject: [PATCH] fix: No error if failing to remove deleted messages from store --- internal/backend/user.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/backend/user.go b/internal/backend/user.go index 572a4b57..b3662ef2 100644 --- a/internal/backend/user.go +++ b/internal/backend/user.go @@ -101,7 +101,11 @@ func newUser( } if err := user.deleteAllMessagesMarkedDeleted(ctx); err != nil { - return nil, err + logrus.WithError(err).Error("Failed to remove deleted messages") + reporter.MessageWithContext(ctx, + "Failed to remove deleted messages", + reporter.Context{"error": err}, + ) } if err := user.cleanupStaleStoreData(ctx); err != nil {