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:
A fatal error has occured:
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:
or die $GT::SQL::error;should I put the print Links::SiteHTML::display('vr_add_fail', $tags) after the or die part?
http://www.iuni.com/...tware/web/index.html
Links Plugins
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;

http://www.iuni.com/...tware/web/index.html
Links Plugins