Skip to content

Commit

Permalink
Improve error message when pod cannot be started.
Browse files Browse the repository at this point in the history
  • Loading branch information
draghuram committed Feb 24, 2020
1 parent db89bb7 commit b9d6511
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kubedr/controllers/metadatarestore_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ func (r *MetadataRestoreReconciler) Reconcile(req ctrl.Request) (ctrl.Result, er
// This shouldn't really happen but if an invalid MBR is given or
// if backup location inside the MBR is wrong, there is nothing we can
// do.
r.setStatus(&mr, "Failed", "Error in creating restore pod")
r.setStatus(&mr, "Failed",
fmt.Sprintf("Error in creating restore pod, reason (%s)", err.Error()))
return ctrl.Result{}, nil
}

Expand Down

0 comments on commit b9d6511

Please sign in to comment.