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 8, 2022
1 parent 5ad43cf commit 490f4f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/content-service/pkg/initializer/initializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 490f4f1

Please sign in to comment.