Error returns the underlying error message.
()
| 38 | |
| 39 | // Error returns the underlying error message. |
| 40 | func (e *Error) Error() string { |
| 41 | if err := e.GoError; err != nil { |
| 42 | if e.File == "" { |
| 43 | return err.Error() |
| 44 | } |
| 45 | return fmt.Sprintf("[%s:%d] %s", e.File, e.Line, err.Error()) |
| 46 | } |
| 47 | return "" |
| 48 | } |
| 49 | |
| 50 | // normalizeFileForPackageMatch strips @version segments from module cache paths |
| 51 | // so that package matching works regardless of where the module is cached. |
no outgoing calls