On 7/31/06, Rob Kinyon <[EMAIL PROTECTED]> wrote:
http://search.cpan.org/src/MARKSTOS/CGI-Application-4.06/t/10errormode.t
http://search.cpan.org/src/MARKSTOS/CGI-Application-4.06/test/TestApp11.pm

Basically, it wraps run() within an eval{} block. If run() dies (for
WHATEVER reason) and error_mode is set, then it is called with $@ as
its only parameter.

Just a tiny correction (probably just a typo on your part since I
believe you wrote the original error_mode patch ;-) ).  It only wraps
the execution of the actual runmode in an eval bock.  It would be nice
if it would also catch errors in all of the hooks and callbacks, but
it is not currently implemented that way.

Cheers,

Cees


Rob

On 7/31/06, Jamie Krasnoo <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I've tried setting the error mode and it seems that I'm
> misunderstanding on how it's supposed to be used. I thought it was run
> when a run mode blows up, errors out or whtever you'd like to call it.
> It would be used to hide errors from visitors. Does using CGI::Carp
> defeat it? Can I see an example of how to use it?
>
> Thanks,
>
> Jamie
>
> ---------------------------------------------------------------------
> Web Archive:  http://www.mail-archive.com/[email protected]/
>               http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to