func getApmFailedPlanStepName()

in pkg/formatter/text_template_utils.go [182:189]


func getApmFailedPlanStepName(plan *models.ApmPlanInfo) string {
	for _, step := range plan.PlanAttemptLog {
		if *step.Status == "error" && *step.StepID != "plan-completed" {
			return *step.StepID
		}
	}
	return "-"
}