fix error message

This commit is contained in:
koba1t
2022-04-13 04:55:21 +09:00
parent cdc4a5083b
commit 01ab069bd2
4 changed files with 14 additions and 4 deletions

View File

@@ -542,8 +542,8 @@ func (l PathGetter) getFilter(part, nextPart string, fieldPath *[]string) (Filte
// part is a hyphen
return GetElementByIndex(-1), nil
case part == "*":
// part is a asterisk
return nil, errors.Errorf("cannot support create option in a multi-value target now")
// PathGetter is not support for wildcard matching
return nil, errors.Errorf("wildcard is not supported in PathGetter")
case IsListIndex(part):
// part is surrounded by brackets
return l.elemFilter(part)