Skip to content

TemplateParserException is not helpful #4

@GoogleCodeExporter

Description

@GoogleCodeExporter
Request for enhancement:

When the library throws a TemplateParserException it says "Unexpected or 
malformed input" and includes the entire template text.  In my opinion this is 
unhelpful for two reasons:

  1) It gives no clue as to what it didn't like.  A line number would be really helpful.

  2) If your template text is huge (like mine), your log file will now have an unsightly dump of the entire template.  A concise snippet of the offending line would be best.

Of course I realize this is all easier said than done.  A good compromise might 
be to just tell what rule was violated, such as "Illegal variable name".

Original issue reported on code.google.com by cru...@gmail.com on 1 Mar 2012 at 7:41

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions