MCPcopy Create free account
hub / github.com/goadesign/goa / Error

Method Error

eval/error.go:40–48  ·  view source on GitHub ↗

Error returns the underlying error message.

()

Source from the content-addressed store, hash-verified

38
39// Error returns the underlying error message.
40func (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.

Callers 15

TestNewTraceOptionsFunction · 0.45
exceptionDataFunction · 0.45
ReadUDPFunction · 0.45
TestInvalidArgErrorFunction · 0.45
TestTooFewArgErrorFunction · 0.45
TestTooManyArgErrorFunction · 0.45
TestValidationErrorsFunction · 0.45
ErrorMethod · 0.45
TestInterceptorFunction · 0.45
TestServerInterceptorFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestNewTraceOptionsFunction · 0.36
TestInvalidArgErrorFunction · 0.36
TestTooFewArgErrorFunction · 0.36
TestTooManyArgErrorFunction · 0.36
TestValidationErrorsFunction · 0.36
TestInterceptorFunction · 0.36
TestServerInterceptorFunction · 0.36
TestClientInterceptorFunction · 0.36
runDSLFunction · 0.36
TestViewFunction · 0.36