jinja2.parser.Parser.fail_unknown_tag

Parser.fail_unknown_tag(name, lineno=None)[source]

Called if the parser encounters an unknown tag. Tries to fail with a human readable error message that could help to identify the problem.