MCPcopy
hub / github.com/google/go-jsonnet / formatStatic

Method formatStatic

error_formatter.go:80–85  ·  view source on GitHub ↗
(err errors.StaticError)

Source from the content-addressed store, hash-verified

78}
79
80func (ef *termErrorFormatter) formatStatic(err errors.StaticError) string {
81 var buf bytes.Buffer
82 buf.WriteString(err.Error() + "\n")
83 ef.showCode(&buf, err.Loc())
84 return buf.String()
85}
86
87const bugURL = "https://github.com/google/go-jsonnet/issues"
88

Callers 1

FormatMethod · 0.95

Calls 4

showCodeMethod · 0.95
ErrorMethod · 0.65
LocMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected