Skip to content

Commit

Permalink
Merge #83458
Browse files Browse the repository at this point in the history
83458: backupccl: wrap error in create schedule r=stevendanna a=adityamaru

Wrap the error returned when resolving previous backups
in the collection with the actual error returned by the
ExternalStorage sink.

Release note: None

Co-authored-by: Aditya Maru <[email protected]>
  • Loading branch information
craig[bot] and adityamaru committed Jun 29, 2022
2 parents 6bcabcf + f915a19 commit cf6ee8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ccl/backupccl/create_scheduled_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ func checkForExistingBackupsInCollection(
collectionURI)
}
if !errors.Is(err, cloud.ErrFileDoesNotExist) {
return errors.Newf("unexpected error occurred when checking for existing backups in %s",
return errors.Wrapf(err, "unexpected error occurred when checking for existing backups in %s",
collectionURI)
}

Expand Down

0 comments on commit cf6ee8f

Please sign in to comment.