code: def fail_on_template_errors(f, *args, **kwargs):
      
      decorators = [
          _fail_template_string_if_invalid,
          _always_strict_resolve,
          _disallow_catching_UnicodeDecodeError,
      ]
      if django.VERSION < (1, 8):
          decorators.append(_patch_invalid_var_format_string)
  
      return reduce(__apply, decorators, f)(*args, **kwargs)
docs: Decorator that causes templates to fail on template errors.