MCPcopy Create free account
hub / github.com/CloudyKit/jet / errorf

Method errorf

parse.go:145–149  ·  view source on GitHub ↗

errorf formats the error and terminates processing.

(format string, args ...interface{})

Source from the content-addressed store, hash-verified

143
144// errorf formats the error and terminates processing.
145func (t *Template) errorf(format string, args ...interface{}) {
146 t.Root = nil
147 format = fmt.Sprintf("template: %s:%d: %s", t.ParseName, t.lex.lineNumber(), format)
148 panic(fmt.Errorf(format, args...))
149}
150
151// error terminates processing.
152func (t *Template) error(err error) {

Callers 10

errorMethod · 0.95
unexpectedMethod · 0.95
parseTemplateMethod · 0.95
itemListMethod · 0.95
commandMethod · 0.95
operandMethod · 0.95
parseArgumentsMethod · 0.95
parseCatchMethod · 0.95
termMethod · 0.95

Calls 1

lineNumberMethod · 0.80

Tested by

no test coverage detected