(path Path, index int)
| 105 | } |
| 106 | |
| 107 | func MakePathTypeError(path Path, index int) error { |
| 108 | return PathError{fmt.Sprintf("invalid path element type:%T at index:%d (%s)", path[index], index, FormatPath(path))} |
| 109 | } |
| 110 | |
| 111 | func MakePathError(errStr string, path Path, index int) error { |
| 112 | return PathError{fmt.Sprintf("%s at index:%d (%s)", errStr, index, FormatPath(path))} |
no test coverage detected