Task #46091

Show source file name and position on exceptions during parsing

Added by Christopher Hlubek over 2 years ago. Updated over 2 years ago.

Status:Needs Feedback Start date:2013-03-07
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-
Has patch:No

Description

It would be really helpful to spot errors if the Fluid TemplateParser would show the current source file and line number on errors. Right now there's absolutely no clue in the exception handler where to look for the error.


Related issues

related to TYPO3.Fluid - Feature #4704: Improve parsing exception messages New 2009-09-20

History

#1 Updated by Bastian Waidelich over 2 years ago

  • Status changed from New to Needs Feedback

Hi Christopher,

I think this is (kind of) a duplicate of #4704
Showing source and line number is not so easy because of the compiled templates - but at least for parsing errors it should be fairly easy (because that happens before the compilation).
Another really simple solution would be to catch ViewHelper exceptions (we already do but rethrow them in dev context) and display them inline. see http://lists.typo3.org/pipermail/flow3-general/2012-December/003172.html

#2 Updated by Christopher Hlubek over 2 years ago

  • Subject changed from Show source file name and position on exceptions to Show source file name and position on exceptions during parsing

Okay, so I would be interested to improve that at least for the parsing then. Runtime exceptions during evaluation is a different story.

Also available in: Atom PDF