From 490f4f1d7a3e31d8b21d42eb0691f847a5d258a6 Mon Sep 17 00:00:00 2001 From: Pavel Tumik <18602811+sagor999@users.noreply.github.com> Date: Mon, 6 Jun 2022 21:16:29 +0000 Subject: [PATCH] [content-service] show error if failed to download backup file --- components/content-service/pkg/initializer/initializer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/content-service/pkg/initializer/initializer.go b/components/content-service/pkg/initializer/initializer.go index 79e52f6eb567b9..8cb84622616279 100644 --- a/components/content-service/pkg/initializer/initializer.go +++ b/components/content-service/pkg/initializer/initializer.go @@ -191,7 +191,7 @@ func (bi *fromBackupInitializer) Run(ctx context.Context, mappings []archive.IDM hasBackup, err := bi.RemoteStorage.Download(ctx, bi.Location, storage.DefaultBackup, mappings) if !hasBackup { - return src, xerrors.Errorf("no backup found") + return src, xerrors.Errorf("no backup found: %w", err) } if err != nil { return src, xerrors.Errorf("cannot restore backup: %w", err)