MCPcopy Create free account
hub / github.com/brimdata/super / Error

Method Error

compiler/parser/parser.go:24714–24731  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24712}
24713
24714func (e errList) Error() string {
24715 switch len(e) {
24716 case 0:
24717 return ""
24718 case 1:
24719 return e[0].Error()
24720 default:
24721 var buf bytes.Buffer
24722
24723 for i, err := range e {
24724 if i > 0 {
24725 buf.WriteRune('\n')
24726 }
24727 buf.WriteString(err.Error())
24728 }
24729 return buf.String()
24730 }
24731}
24732
24733// parserError wraps an error with a prefix indicating the rule in which
24734// the error occurred. The original error is stored in the Inner field.

Callers 4

ParseFilesFunction · 0.45
TestInvalidFunction · 0.45
dedupeMethod · 0.45
ErrorMethod · 0.45

Calls 1

StringMethod · 0.65

Tested by 1

TestInvalidFunction · 0.36