django/django — pull request #723 by mvantellingen (2013-02-14 08:46:34+00:00)
Title: Fixed #19819 - Handle template filter errors correctly.

Wrap the Parser.compile_filter method call with a try/except and call the
newly added Parser.compile_filter_error(). Overwrite this method in the
DebugParser to throw the correct error.

Since this error was otherwise catched by the compile_function try/except
block the debugger highlighted the wrong line.