// errorf formats the error and terminates processing.
324555
func (t *tree) errorf(format string, args ...interface{}) {
	// get current token (taking account of backups)
	var tok = t.token[0]
	if t.peekCount > 0 {
		tok = t.token[t.peekCount-1]
	}
	t.root = nil
	format = fmt.Sprintf("template %s:%d:%d: %s", t.name,
		t.lex.lineNumber(tok.pos), t.lex.columnNumber(tok.pos), format)
	panic(
		errortypes.NewErrFilePosf(
			t.name,
			t.lex.lineNumber(tok.pos),
			t.lex.columnNumber(tok.pos),
			format,
			args...,
		),
	)
}
65220
func (l *Logger) Errorf(format string, v ...interface{}) {
	l.Fprint(l.flags, LEVEL_ERROR, 2, fmt.Sprintf(format, v...), nil)
}
1360480
func (s *scope) errorf(message string, args ...interface{}) error {
	srcPath, destPath := s.describe()
	where := fmt.Sprintf("converting %v to %v: ", srcPath, destPath)
	return fmt.Errorf(where+message, args...)
}
756279
func Errorf(err error, message string, args ...interface{}) *Error {
	msg := fmt.Sprintf(message, args...)
	return newError(err, msg)
}
175963
func (l *logger) Errorf(format string, a ...interface{}) {
	l.printLog("[ERROR]", format, a...)
}
403731
func (s *state) errorf(format string, args ...interface{}) {
	format = fmt.Sprintf("%s: %s", s.callAnnotation(), format)
	panic(s.errFromNode(format, args...))
}
766654
func Errorf(f string, args ...interface{}) *Error {
	e := &Error{
		stack: []errorStack{},
		desc:  fmt.Sprintf(f, args...),
	}

	i := 1

	for {
		stack := errorStack{}
		pc, file, line, ok := runtime.Caller(i)
		if !ok {
			break
		}

		fun := runtime.FuncForPC(pc)
		if fun != nil {
			stack.fun = fun.Name()
		}

		stack.file = path.Base(file)
		stack.line = line
		e.stack = append(e.stack, stack)

		i++
	}

	return e
}
384185
func (logger *Logger) Errorf(format string, args ...interface{}) {
	logger.output(log.Error, fmt.Sprintf(format, args...))
}
116166
func (ns *Namespace) Errorf(format string, a ...interface{}) string {
	ns.errorLogger.Printf(format, a...)
	return _fmt.Sprintf(format, a...)
}
410495
func Errorf(format string, args ...interface{}) {
	logMux.RLock()
	defer logMux.RUnlock()
	if logLevel <= LevelError {
		info := retrieveCallInfo().shortFormat()
		msg := fmt.Sprintf(format, args...)

		if shallLog(LevelError, info, msg) {
			logBackend.Error(info, msg)
		}
	}
}
20469
func (tl *ThrottledLogger) Errorf(format string, v ...interface{}) {
	tl.log(errorDepth, format, v...)
}
358284
func Errorf(format string, args ...interface{}) {
	if logger != nil {
		logger.Errorf(format, args...)
	}
}
1310241
func Errorf(pos Position, format string, args ...interface{}) *Error {
	return &Error{
		Message: fmt.Sprintf(format, args...),
		Pos:     pos,
	}
}
622134
func (l *Logger) Errorf(format string, v ...interface{}) {
	if l.getLevel() <= Error {
		l.getHandler().Log(l.name, Error, fmt.Sprintf(format, v...), 1)
	}
}
760634
func (l *Lexer) errorf(format string, args ...interface{}) lexFunc {
	l.tokens <- Token{TokenError, fmt.Sprintf(format, args...), l.start, l.line}
	return nil
}
697130
func Errorf(defaultValue string, args ...int) error {
	return errors.New(T(defaultValue, args...))
}
84898
func Errorf(c context.Context, fmt string, args ...interface{}) {
	Get(c).LogCall(Error, 1, fmt, args)
}