Skip to content

Commit bc74f87

Browse files
sagor999roboquat
authored andcommitted
[content-service] show error if failed to download backup file
1 parent 86282e8 commit bc74f87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/content-service/pkg/initializer/initializer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func (bi *fromBackupInitializer) Run(ctx context.Context, mappings []archive.IDM
191191

192192
hasBackup, err := bi.RemoteStorage.Download(ctx, bi.Location, storage.DefaultBackup, mappings)
193193
if !hasBackup {
194-
return src, xerrors.Errorf("no backup found")
194+
return src, xerrors.Errorf("no backup found: %w", err)
195195
}
196196
if err != nil {
197197
return src, xerrors.Errorf("cannot restore backup: %w", err)

0 commit comments

Comments
 (0)