Skip to content

Commit

Permalink
[content-service] show error if failed to download backup file
Browse files Browse the repository at this point in the history
  • Loading branch information
sagor999 committed Jun 6, 2022
1 parent 5ad43cf commit a4d22e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/content-service/pkg/initializer/initializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ 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, fmt.Errorf("no backup found: %v", err)
}
if err != nil {
return src, xerrors.Errorf("cannot restore backup: %w", err)
return src, fmt.Errorf("cannot restore backup: %v", err)
}

return csapi.WorkspaceInitFromBackup, nil
Expand Down

0 comments on commit a4d22e4

Please sign in to comment.