David Bovill
Wed, 13 Sep 2000 09:20:03 -0700
Test your CGI's thoroughly offline first. When I was doing this a while back I used a Metacard stack to process forms and act as a spoof browser for this job. Are you using ".mt" scripts or the Metacard based HTTP server? > From: Gary Rathbone <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > Date: Wed, 13 Sep 2000 16:37:30 +0100 > To: [EMAIL PROTECTED] > Subject: Trapping Errors > > I'm writing an increasing number of complex cgi's using Metacard (What a > tool !) > I submit a page from by browser and metacard processes the request and > returns the required result. However should I (an I often do) have a typo in > my script eg: > > "put thtmlpage ito thtmlout" > > the browser 'sticks' as MC can't produce the results due to the error. In > this instance MC doesn't return any error information and I have to search > through the script line by line to hopefully find my mistake. > > Q: Can I return a 'readable' MC error message to the browser or even put a > message into an error field on the stack ? I guess I need to write my own > error routines...If so can anyone give me any pointers ? > > TIA > > Gary Rathbone > > Archives: http://www.mail-archive.com/metacard%40lists.best.com/ > Info: http://www.xworlds.com/metacard/mailinglist.htm > Please send bug reports to <[EMAIL PROTECTED]>, not this list. Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to <[EMAIL PROTECTED]>, not this list.