MCPcopy Create free account
hub / github.com/koding/kite / Error

Method Error

kontrol/errors.go:24–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22}
23
24func (me *multiError) Error() string {
25 switch len(me.err) {
26 case 0:
27 return ""
28 case 1:
29 return me.err[0].Error()
30 }
31
32 var buf bytes.Buffer
33 buf.WriteString("multiple errors occurred:\n\n")
34
35 for _, err := range me.err {
36 fmt.Fprintf(&buf, " * %T: %s\n", err, err)
37 }
38
39 return buf.String()
40}

Callers

nothing calls this directly

Calls 2

ErrorMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected