Return-Path: Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 77444 invoked by uid 500); 23 Nov 2002 05:08:00 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 77430 invoked from network); 23 Nov 2002 05:08:00 -0000 Content-Type: text/plain; charset="us-ascii" From: Jordan Baker Reply-To: jbb@contradix.com To: embperl@perl.apache.org Subject: Embperl::Object and ErrorDocument Date: Sat, 23 Nov 2002 00:08:09 -0500 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200211230008.09049.sutra@rogers.com> X-Authentication-Info: Submitted using SMTP AUTH PLAIN at fep04-mail.bloor.is.net.cable.rogers.com from [24.103.200.125] using ID at Sat, 23 Nov 2002 00:08:09 -0500 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 it apparently does not work in this case... ie. execution will continue. So my temporary work around is to rethrow the errors I receive in this case... The only annoying thing is that I need to do this for any file I Execute from the base.epl and it gets a bit redundant.. which is why it would be nice to be able to propogate the error back to the top unless you have "errors" set to something. my $errs = []; Execute({inputfile => "*", errors => $errs}); # rethrow error die join("\n", @$errs) if $errs; Anyone else using Embperl::Object who has any other advice?? This will help me in a basic regard anway so I'm mostly happy :) -- Jordan Baker jbb@contradix.com --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org