[Templates] only getting one error in a loop
Mihai Bazon
mihai at bazon.net
Wed May 14 21:42:25 BST 2008
I was just kidding with "die()"... of course it's not a solution. The
solution is probably to just fix the template and make sure you get no
error at all.
However, now it gets interesting... :-) If you have die() after the
code that reports the error to you, how come you receive the same
message multiple times? Probably the same user has retried many times
an operation that failed? What's the environment? (mod_perl? CGI?
stand alone script?)
-M.
Robert Hicks wrote:
> I do have that...still gives me the same results.
>
> Mihai Bazon wrote:
>
>> Add die() after the line that throws back the error to you. :-p
>>
>> -M.
>>
>> Robert Hicks wrote:
>>
>>> I have a list of 5 people that are getting an email. On
>>> template->process I am using template->error to get any template errors
>>> thrown back at me.
>>>
>>> However I get the same error 5 times...and I only need to know 1 time.
>>>
>>> =)
>>>
>>> Robert
>>>
>>>
>>> _______________________________________________
>>> templates mailing list
>>> templates at template-toolkit.org
>>> http://mail.template-toolkit.org/mailman/listinfo/templates
>>>
>>>
>>>
>>
>
>
> _______________________________________________
> templates mailing list
> templates at template-toolkit.org
> http://mail.template-toolkit.org/mailman/listinfo/templates
>
>
--
www.dynarchlib.com - the mighty AJAX toolkit
More information about the templates
mailing list