Skip to content

Commit 40507f9

Browse files
chore: controller: fix error messages
1 parent 71d37f5 commit 40507f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/controller/mantlebackup_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ func (r *MantleBackupReconciler) startExportAndUpload(
10691069
DiffFrom: sourceBackupName,
10701070
},
10711071
); err != nil {
1072-
return ctrl.Result{}, err
1072+
return ctrl.Result{}, fmt.Errorf("failed to call SetSynchronizing RPC: %w", err)
10731073
}
10741074

10751075
largestCompletedExportPartNum, err := r.startExport(ctx, targetBackup, sourceBackupName)
@@ -2435,7 +2435,7 @@ func (r *MantleBackupReconciler) reconcileImportJob(
24352435
// Check that all import Jobs are completed
24362436
finalPartNum, err := r.getNumberOfParts(backup)
24372437
if err != nil {
2438-
return ctrl.Result{}, fmt.Errorf("failed to calcuate num of export data parts: %w", err)
2438+
return ctrl.Result{}, fmt.Errorf("failed to calculate num of export data parts: %w", err)
24392439
}
24402440
if partNum == finalPartNum {
24412441
// Make sure the (final) RBD snapshot is created.

0 commit comments

Comments
 (0)