mirror of
https://github.com/TwiN/gatus.git
synced 2026-02-04 15:14:43 +00:00
Fix issue with displayed condition when condition uses len()
This commit is contained in:
@@ -155,7 +155,11 @@ func sanitizeAndResolve(list []string, result *Result) []string {
|
||||
if err.Error() != "unexpected end of JSON input" {
|
||||
result.Errors = append(result.Errors, err.Error())
|
||||
}
|
||||
element = fmt.Sprintf("%s %s", element, InvalidConditionElementSuffix)
|
||||
if wantLength {
|
||||
element = fmt.Sprintf("len(%s) %s", element, InvalidConditionElementSuffix)
|
||||
} else {
|
||||
element = fmt.Sprintf("%s %s", element, InvalidConditionElementSuffix)
|
||||
}
|
||||
} else {
|
||||
if wantLength {
|
||||
element = fmt.Sprintf("%d", resolvedElementLength)
|
||||
|
||||
Reference in New Issue
Block a user