On Thu, 2003-11-06 at 10:11, Joe Stewart wrote:
> On Wed, Nov 05, 2003 at 10:27:54PM +0000, Peter Cruickshank wrote:
[snip]
> > I have to ask tho.... is there any way to get an error message generated,
> > rather than the page just silently dying? If the template class error had
> > been shown, I'd have been able to get some productive work done today. (Or
> > if
> > I was less careless, I know...)
> >
>
> I'd like that too. There may be some commented out, but I've had some
> problems with errors in the template class not being very forgiving.
> Yours should have simply shown the applicable fancybox.tpl. Seems a bug
> to me.
I too have caused spectacular errors with no clue to their origin by
messing up the template class. I think the problem is that pslError()
uses a template to display its error. So if the template class is
broken and wants to call its own errors, you get an infinite stack of
'em.
Not sure where to break the loop, though...a second lower-tech error
function with no templating? That's what could be called inside
slashTemplate. Could even be a method for template since that's the
only time we'd need it. Or pslError could check to see if slashTemplate
has properly loaded before using a template.
Hmmmm....
--Matt
--
Matthew Leingang
Harvard University Department of Mathematics
leingang-c2Vpf+SSmYbWs/AcZQh2Cw@xxxxxxxxxxxxxxxx
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
|