Skip to content

Commit

Permalink
*: polish error message
Browse files Browse the repository at this point in the history
Signed-off-by: BornChanger <[email protected]>
  • Loading branch information
BornChanger authored and ti-chi-bot committed Jun 30, 2023
1 parent 73cc3f4 commit 8c0d95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/backup/backup/backup_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (bm *backupManager) makeBackupJob(backup *v1alpha1.Backup) (*batchv1.Job, *
Reason: reason,
Message: err.Error(),
}, nil)
return nil, nil, "", controller.IgnoreErrorf("backup failed [%s], reason is [%s]", err.Error(), reason)
return nil, nil, "", controller.IgnoreErrorf("%s, reason is %s", err.Error(), reason)
} else {
bm.statusUpdater.Update(backup, &v1alpha1.BackupCondition{
Command: logBackupSubcommand,
Expand Down

0 comments on commit 8c0d95d

Please sign in to comment.