I have the following responses. 

1. error trapping
> Execute({inputfile => 'file.epl', errors => [EMAIL PROTECTED]);
> if (@errors) { Execute('notify_error.epr', [EMAIL PROTECTED]); } 
> In the "notify_error.epr" page you can send a message with all debugging
> data you need like fdat, udat, ENV and etc.

2. errorpage and notice
> First configure your own error page
> ErrorDocument 500 /errors/500.epo
>   [-
>     if ($req_rec && ($prev = $req_rec->prev)) {
>       $errors = $prev->pnotes('EMBPERL_ERRORS');
>       if ($errors && @$errors) {
>         Execute('notify_error.epr', $errors);
>       }
>     }
>   -]
> Second disable the default error page from Embperl
> PerlSetEnv EMBPERL_OPTIONS 262144

3. send out a mail on every error.  (perldoc Embperl::Config)
> Embperl_Mail_Errors_To
> config directive 

Thanks to Luiz and Gerald for the advice. 

We are on 1.3 and are not using Embperl::Object yet. I hope I can use the
above regardlessly. I know I can use Execute, but I'm not familiar about
the extensions epo and epr. What is the pod that explains them?

Thanks,

Ben Kim


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

Reply via email to