Re: some thoughts on error handling
| From: | Andrei Zmievski | Date: | Wed, 28 Mar 2001 17:11:02 +0000 |
| Subject: | Re: some thoughts on error handling | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-484@lists.php.net to get a copy of this message | ||
On Sun, 25 Mar 2001, Marc Logemann wrote:
> Am i totally wrong or should the internal error handling be upgraded in some way?
> Its really horrable that one mistake can break your entire site. If one
> template is broken, it should be skipped and the next files in the template
> directory should be compiled as normal...
That would be possible by always using E_USER_WARNING error level in
_syntax_error(). I can change it if there are not major objections.
> So a logging mechanism would be good, right now i inserted my own debug line
> in the traverse_files() function in oder to see what template is broken.
It does show you which template it is in _syntax_error().
-Andrei
* Only 19,999 lines of C++ to my next ski trip... *