RE: Embperl::Object and ErrorDocument

2005-02-24 Thread Gerald Richter
> > I have an ErrorDocument 500 in httpd.conf, and optReturnError > is enabled. Using Embperl::Object, if an error occurs in > something Execute()'d from base.epl, nothing happens - > Embperl just aborts the Execute and carries on. This is > Embperl 2.0rc2. > > This behaviour has been noted b

Embperl::Object and ErrorDocument

2005-02-23 Thread Robert Norris
I have an ErrorDocument 500 in httpd.conf, and optReturnError is enabled. Using Embperl::Object, if an error occurs in something Execute()'d from base.epl, nothing happens - Embperl just aborts the Execute and carries on. This is Embperl 2.0rc2. This behaviour has been noted before. http://www2

Re: Embperl::Object and ErrorDocument

2002-11-25 Thread Gerald Richter
> By "hide the error" I mean that if an ErrorDocument 500 is enabled in > httpd.conf, EMBPERL_OPTIONS is set to return the error in the Apache request, > and I call a template in base.epl that causes an error then it seems to > simply abort that current template and continue on, as opposed to sho

Re: Embperl::Object and ErrorDocument

2002-11-25 Thread Jordan Baker
By "hide the error" I mean that if an ErrorDocument 500 is enabled in httpd.conf, EMBPERL_OPTIONS is set to return the error in the Apache request, and I call a template in base.epl that causes an error then it seems to simply abort that current template and continue on, as opposed to showing me

Re: Embperl::Object and ErrorDocument

2002-11-25 Thread Gerald Richter
> > I do a couple Execute calls in my base.epl and essentially they hide the error > from the parent process. > What do you mean by "hide the error"? If a error happens anywhere, you should get an error page, don't you? Errors should propgate to the parent, unles you use the errors => parameter (

Re: Embperl::Object and ErrorDocument

2002-11-24 Thread Kee Hinckley
At 10:33 AM -0200 11/24/02, Luiz Fernando B. Ribeiro wrote: I use a [$ sub error $] in my base.epl that do do all the error handling and in the end it exits with a normal exit; In my other pages after any eval {}; or other error I call that sub with $req->error('tittle', 'page', $error); It work

Re: Embperl::Object and ErrorDocument

2002-11-24 Thread Luiz Fernando B. Ribeiro
Em Sat, 23 Nov 2002 00:08:09 -0500 Jordan Baker <[EMAIL PROTECTED]> escreveu: > Aha, well I discovered something by testing tonite. > > I do a couple Execute calls in my base.epl and essentially they hide > the error from the parent process. > > So I have to find a way to propogate errors.. perh

Re: Embperl::Object and ErrorDocument

2002-11-23 Thread Ed Grimm
Have a per-request data store (such as the Apache request record) in which you place your error messages. So, instead of 'my $errs', you have something like '$r->errs'. (Please note that I don't actually use the Apache request record for this; as such, I don't know if that was the right syntax fo

Embperl::Object and ErrorDocument

2002-11-22 Thread Jordan Baker
Aha, well I discovered something by testing tonite. I do a couple Execute calls in my base.epl and essentially they hide the error from the parent process. So I have to find a way to propogate errors.. perhaps there is an option to Execute to propogate errors when you call another document but