Merge pull request #73179 from tedyu/master

Correct message for step value check
This commit is contained in:
Kubernetes Prow Robot 2019-01-22 13:41:06 -08:00 committed by GitHub
commit 0c81d1a1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}