Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Customising Error Messages on $DB errors

Quote Reply
Customising Error Messages on $DB errors
I am interested in customizing the error message into displaying a custom template instead of the canned message. Not having played around with the GT:error much before could someone point me in the right direction with an example:

So I want to turn this:

Quote:


A fatal error has occured:
The column 'VIN' must be unique, and already has an entry '1111'. at vr_add.cgi line 85.


Please enable debugging in setup for more details.


Into displaying my custom template: print Links::SiteHTML::display('vr_add_fail', $tags);

this is the part of the code after an insert statement for example:

Code:
$c->insert( blah blah )

or die $GT::SQL::error;
should I put the print Links::SiteHTML::display('vr_add_fail', $tags) after the or die part?Crazy


http://www.iuni.com/...tware/web/index.html
Links Plugins
Subject Author Views Date
Thread Customising Error Messages on $DB errors Ian 3530 Jul 6, 2002, 10:29 PM
Thread Re: [Ian] Customising Error Messages on $DB errors
pugdog 3433 Jul 7, 2002, 3:55 AM
Thread Re: [pugdog] Customising Error Messages on $DB errors
Ian 3439 Jul 7, 2002, 7:29 AM
Thread Re: [Ian] Customising Error Messages on $DB errors
Ian 3428 Jul 7, 2002, 1:45 PM
Thread Re: [Ian] Customising Error Messages on $DB errors
yogi 3411 Jul 7, 2002, 1:52 PM
Post Re: [yogi] Customising Error Messages on $DB errors
Ian 3398 Jul 7, 2002, 2:03 PM