Skip to content

Commit

Permalink
capturing actual error message while checking if repo exists
Browse files Browse the repository at this point in the history
  • Loading branch information
shkumari-px committed Dec 22, 2023
1 parent 08959e7 commit 87e340e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/executor/kopia/kopiabackup.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ func isRepositoryExists(repository *executor.Repository) (bool, error) {
exists, repoExistsError = bucket.Exists(context.TODO(), kopiaRepositoryFile)
if repoExistsError != nil {
status := &executor.Status{
LastKnownError: err,
LastKnownError: repoExistsError,
}
if err = executor.WriteVolumeBackupStatus(status, volumeBackupName, bkpNamespace); err != nil {
errMsg := fmt.Sprintf("failed to write a VolumeBackup status: %v", err)
Expand Down

0 comments on commit 87e340e

Please sign in to comment.