Skip to content

Commit a4d22e4

Browse files
committed
[content-service] show error if failed to download backup file
1 parent 5ad43cf commit a4d22e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,10 @@ 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, fmt.Errorf("no backup found: %v", err)
195195
}
196196
if err != nil {
197-
return src, xerrors.Errorf("cannot restore backup: %w", err)
197+
return src, fmt.Errorf("cannot restore backup: %v", err)
198198
}
199199

200200
return csapi.WorkspaceInitFromBackup, nil

0 commit comments

Comments
 (0)