errorf formats the error and terminates processing.
(format string, args ...interface{})
| 143 | |
| 144 | // errorf formats the error and terminates processing. |
| 145 | func (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. |
| 152 | func (t *Template) error(err error) { |
no test coverage detected