MCPcopy Index your code
hub / github.com/docker/cli / newPathError

Function newPathError

cli/compose/interpolation/interpolation.go:102–113  ·  view source on GitHub ↗
(path Path, err error)

Source from the content-addressed store, hash-verified

100}
101
102func newPathError(path Path, err error) error {
103 switch err := err.(type) {
104 case nil:
105 return nil
106 case *template.InvalidTemplateError:
107 return fmt.Errorf(
108 "invalid interpolation format for %s: %#v; you may need to escape any $ with another $",
109 path, err.Template)
110 default:
111 return fmt.Errorf("error while interpolating %s: %w", path, err)
112 }
113}
114
115const pathSeparator = "."
116

Callers 1

recursiveInterpolateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…