text/template.state.errorf (method)

44 uses

	text/template (current package)
		exec.go#L71: 	s.errorf("undefined variable: %s", name)
		exec.go#L86: 	s.errorf("undefined variable: %s", name)
		exec.go#L128: func (s *state) errorf(format string, args ...interface{}) {
		exec.go#L218: 		state.errorf("%q is an incomplete or empty template", t.Name())
		exec.go#L277: 		s.errorf("unknown node: %s", node)
		exec.go#L288: 		s.errorf("if/with can't use %v", val)
		exec.go#L377: 			s.errorf("range over send-only channel %v", val)
		exec.go#L395: 		s.errorf("range can't iterate over %v", val)
		exec.go#L406: 		s.errorf("template %q not defined", t.Name)
		exec.go#L409: 		s.errorf("exceeded maximum template depth (%v)", maxExecDepth)
		exec.go#L454: 		s.errorf("can't give argument to non-function %s", args[0])
		exec.go#L483: 		s.errorf("nil is not a command")
		exec.go#L489: 	s.errorf("can't evaluate command %q", firstWord)
		exec.go#L514: 			s.errorf("%s overflows int", constant.Text)
		exec.go#L519: 		s.errorf("%s overflows int", constant.Text)
		exec.go#L540: 		s.errorf("internal error: no fields in evalChainNode")
		exec.go#L543: 		s.errorf("indirection through explicit nil in %s", chain)
		exec.go#L578: 		s.errorf("%q is not a defined function", name)
		exec.go#L589: 			s.errorf("nil data; no entry for key %q", fieldName)
		exec.go#L598: 		s.errorf("nil pointer evaluating %s.%s", typ, fieldName)
		exec.go#L619: 				s.errorf("%s is an unexported field of struct type %s", fieldName, typ)
		exec.go#L623: 				s.errorf("%s has arguments but cannot be invoked as function", fieldName)
		exec.go#L632: 				s.errorf("%s is not a method but has arguments", fieldName)
		exec.go#L642: 					s.errorf("map has no entry for key %q", fieldName)
		exec.go#L657: 			s.errorf("nil pointer evaluating %s.%s", typ, fieldName)
		exec.go#L660: 	s.errorf("can't evaluate field %s in type %s", fieldName, typ)
		exec.go#L686: 			s.errorf("wrong number of args for %s: want at least %d got %d", name, typ.NumIn()-1, len(args))
		exec.go#L689: 		s.errorf("wrong number of args for %s: want %d got %d", name, typ.NumIn(), numIn)
		exec.go#L693: 		s.errorf("can't call method/function %q with %d results", name, typ.NumOut())
		exec.go#L730: 		s.errorf("error calling %s: %v", name, err)
		exec.go#L760: 		s.errorf("invalid value; expected %s", typ)
		exec.go#L781: 				s.errorf("dereference of nil pointer of type %s", typ)
		exec.go#L786: 			s.errorf("wrong type for value; expected %s; got %s", typ, value.Type())
		exec.go#L801: 		s.errorf("cannot assign nil to %s", typ)
		exec.go#L835: 	s.errorf("can't handle %s for arg of type %s", n, typ)
		exec.go#L846: 	s.errorf("expected bool; found %s", n)
		exec.go#L857: 	s.errorf("expected string; found %s", n)
		exec.go#L868: 	s.errorf("expected integer; found %s", n)
		exec.go#L879: 	s.errorf("expected unsigned integer; found %s", n)
		exec.go#L890: 	s.errorf("expected float; found %s", n)
		exec.go#L900: 	s.errorf("expected complex; found %s", n)
		exec.go#L917: 		s.errorf("evalEmptyInterface: nil (can't happen)")
		exec.go#L927: 	s.errorf("can't handle assignment of %s to empty interface argument", n)
		exec.go#L963: 		s.errorf("can't print %s of type %s", n, v.Type())