On 2005.01.27, Dan Chak <[EMAIL PROTECTED]> wrote:
> If I have an ADP that has a single block of code between <% %> tags,
> and an error occurs between them, ns_adp_parse returns false.  However,
> if I have multiple <% %> tags, ns_adp_parse only returns false if the
> last block fails.  Is there any way to change this behavior so that it
> always returns false on failure, no matter where the failure occurred?

What you may want to try is the recent change added to 4.1.0 (CVS HEAD)
that was made to turn an entire ADP page into a single script (thus, if
an error anywhere on the page occured, since it's one script, the entire
page "fails").

See the email from Jim describing the change:

http://www.mail-archive.com/[email protected]/msg07867.html
http://listserv.aol.com/cgi-bin/wa?A2=ind0408&L=aolserver&P=15454

I don't know if I like the idea of pushing this change into the 4.0.x
tree -- I'd rather get folks helping to test the 4.1.0 code so we can
get it to release-quality and move forward.

-- Dossy

--
Dossy Shiobara                       mail: [EMAIL PROTECTED]
Panoptic Computer Network             web: http://www.panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to