in pkg/formatter/text_template_utils.go [159:166]
func getFailedPlanStepName(plan *models.ElasticsearchClusterPlanInfo) string {
for _, step := range plan.PlanAttemptLog {
if *step.Status == "error" && *step.StepID != "plan-completed" {
return *step.StepID
}
}
return "-"
}