See internal comments (I hate *&^@#*(&$ Notes!)...




[EMAIL PROTECTED] on 10/17/2001 06:45:31 AM

> To: [EMAIL PROTECTED]
> Subject:     [cgiapp] Error Handling with CGI::Application
>
> unless ( $object->do_yourself() ) {
>   warn "CRITICAL: Error, object can not do itself!\n";
>   return;
> }
>
> I'm looking for a mechanism for returning this error message to the
browser.
> Currently, it just warn "Document contains no data" and didn't update the
> screen.

How about this:

 unless ( $object->do_yourself() ) {
   warn "CRITICAL: Error, object can not do itself!\n";
   return "CRITICAL: Error, object can not do itself!\n";
 }

Although, I would probably call a function that would generate "pretty"
HTML code instead, but the method is the same.

Brian




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to