()
| 101 | } |
| 102 | |
| 103 | func (e PathError) Error() string { |
| 104 | return "PathError: " + e.Err |
| 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))} |
no outgoing calls