Skip to content

Commit

Permalink
fix(status/controller): fix status error for UnknownError
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Lüders committed Feb 7, 2023
1 parent 11a65ca commit 5952685
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/status/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,11 @@ func handleControllerStatusError(errs []string, errorReason string) (reason, mes
sort.Strings(errs)
message = fmt.Sprintf("There are multiple errors blocking progress:\n* %s", strings.Join(errs, "\n* "))
} else if len(errs) == 1 {
message = errs[0]
reason = errorReason
if len(errorReason) == 0 {
reason = "UnknownError"
}
message = errs[0]
reason = errorReason
}
return reason, message
}
Expand Down

0 comments on commit 5952685

Please sign in to comment.