From 29e468d1ac4a863091dbd8c9146523eca36fa66d Mon Sep 17 00:00:00 2001 From: Ted Yu Date: Tue, 22 Jan 2019 09:41:13 -0800 Subject: [PATCH] Correct message for step value check Kubernetes-commit: 6a819f75364db04638aabd97ae7a19b0b1e97b22 --- util/jsonpath/jsonpath.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/jsonpath/jsonpath.go b/util/jsonpath/jsonpath.go index 78c0b149..a5a8bbf7 100644 --- a/util/jsonpath/jsonpath.go +++ b/util/jsonpath/jsonpath.go @@ -278,7 +278,7 @@ func (j *JSONPath) evalArray(input []reflect.Value, node *ArrayNode) ([]reflect. step := 1 if params[2].Known { if params[2].Value <= 0 { - return input, fmt.Errorf("step must be >= 0") + return input, fmt.Errorf("step must be > 0") } step = params[2].Value }