Signed-off-by: Carlisia <carlisiac@vmware.com>
This commit is contained in:
Carlisia
2019-04-24 14:18:24 -07:00
parent fc25f0ae89
commit 6f496a8921
2 changed files with 3 additions and 2 deletions

View File

@@ -457,9 +457,9 @@ func (c *backupController) runBackup(backup *pkgbackup.Request) error {
backup.Status.Phase = velerov1api.BackupPhaseFailed
backup.Status.CompletionTimestamp.Time = c.clock.Now()
if err != nil {
return errors.Errorf("Error checking if backup already exists in object storage: %v", err)
return errors.Wrapf(err, "error checking if backup already exists in object storage")
}
return errors.Errorf("Backup already exists in object storage")
return errors.Errorf("backup already exists in object storage")
}
// Do the actual backup