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

Method Record

eval/context.go:133–139  ·  view source on GitHub ↗

Record appends an error to the context Errors field.

(err *Error)

Source from the content-addressed store, hash-verified

131
132// Record appends an error to the context Errors field.
133func (c *DSLContext) Record(err *Error) {
134 if c.Errors == nil {
135 c.Errors = MultiError{err}
136 } else {
137 c.Errors = append(c.Errors, err)
138 }
139}
140
141// sortDependencies sorts the depencies of the given root in the given slice.
142func sortDependencies(roots []Root, root Root, depFunc func(Root) []Root) []Root {

Callers 3

ReportErrorFunction · 0.80
runSetFunction · 0.80
validateSetFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected