Skip to content

Commit 6ae03f6

Browse files
committed
decide on a common error message for invalid boolean attribute parsing
1 parent fcef914 commit 6ae03f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func ParseAndReplaceBoolAttributes(val string) (newVal, oldVal string, err error
135135
})
136136

137137
if foundValues == 0 {
138-
err = fmt.Errorf("ParseAndReplaceBoolAttributes: did not find any truthy or falsey values in boolean attribute value: '%s' , lowercase needs to be one of falsey: '%s' or truthy: '%s' values",
138+
err = fmt.Errorf("attribute of type bool can not be parsed: '%s' needs to be one of '%s' or '%s'",
139139
val, strings.Join(falseyValues, " "), strings.Join(truthyValues, " "))
140140
}
141141

0 commit comments

Comments
 (0)