-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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