MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / MakePathTypeError

Function MakePathTypeError

pkg/ijson/ijson.go:107–109  ·  view source on GitHub ↗
(path Path, index int)

Source from the content-addressed store, hash-verified

105}
106
107func 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
111func MakePathError(errStr string, path Path, index int) error {
112 return PathError{fmt.Sprintf("%s at index:%d (%s)", errStr, index, FormatPath(path))}

Callers 1

getPathInternalFunction · 0.85

Calls 1

FormatPathFunction · 0.85

Tested by

no test coverage detected