On Fri, 6 Sep 2002 10:46, Kenny Smith wrote: > Hi all, > > I'm looking for a way to display a different looking error message when > H::T encounters an error like "HTML::Template::param() : attempt to set > parameter 'extra_urls' with a scalar - parameter is not a TMPL_VAR! at > ...", one that fits my site design.
Easiest way is to wrap your HTML::Template->new() in an eval: eval { $tmpl_obj = HTML::Template->new ( ... ) }; if ($@ or ! $tmpl_obj) { ... do your error thing, possibly using $@ for the error message... } Regards, - Brendon. -- R E D S H E R I F F Brendon Oliver - Technology Release Manager [[EMAIL PROTECTED]] Level 7, 10 Queens Road +61 3 9864 0755 tel Melbourne VIC +61 3 9864 0778 fax Australia +61 411 048 342 mob This message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you have received this message in error please notify us immediately by return email or telephone +61 (3) 659 0432, then delete this message. Any views expressed in this message are those of the individual sender and many not necessarily reflect the views of Red Sheriff. --- Humans are communications junkies. We just can't get enough. -- Alan Kay 1:35pm up 3 days, 5:52, 0 users, load average: 1.02, 0.50, 0.24 ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users