(path Path, err error)
| 100 | } |
| 101 | |
| 102 | func 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 | |
| 115 | const pathSeparator = "." |
| 116 |
no outgoing calls
no test coverage detected
searching dependent graphs…