From 0afa2bddf69fb79fe7bc3f5a5ba89c32743f76e3 Mon Sep 17 00:00:00 2001 From: Ashlie Martinez Date: Thu, 21 Mar 2024 12:09:38 -0700 Subject: [PATCH] Wrap error instead of clobbering it --- repo/manifest/committed_manifest_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo/manifest/committed_manifest_manager.go b/repo/manifest/committed_manifest_manager.go index 2b2ec1f6890..f6782058edf 100644 --- a/repo/manifest/committed_manifest_manager.go +++ b/repo/manifest/committed_manifest_manager.go @@ -181,7 +181,7 @@ func (m *committedManifestManager) loadCommittedContentsLocked(ctx context.Conte m.loadManifestContentsLocked(manifests) if err := m.maybeCompactLocked(ctx); err != nil { - return errors.Errorf("error auto-compacting contents") + return errors.Wrap(err, "error auto-compacting contents") } return nil