Jeff-Lewis / smarty-php

Automatically exported from code.google.com/p/smarty-php
0 stars 0 forks source link

Provide better access to template compilation errors, patch provided #155

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is a small feature request, code included. It's described in more detail 
in this forum post: http://www.smarty.net/forums/viewtopic.php?p=85750

Template errors are hard to handle elegantly as the only description of them is 
embedded in a string. Parsing that out would be very error prone, so it would 
be better if Smarty could provide that information separately at the time it's 
generating the error message.

I've attached a patch that adds some public properties to the 
SmartyCompilerException and populates them when handling a compiler error.

Original issue reported on code.google.com by marcus.b...@gmail.com on 17 Sep 2013 at 5:07

Attachments:

GoogleCodeExporter commented 9 years ago
Your patch is now in the SVN trunk and will later be included in 3.1.5

Original comment by Uwe.Tews@googlemail.com on 17 Sep 2013 at 8:49