[REBOL] Re: if error? try problems
From: jeff:rebol at: 6-Apr-2001 10:04
Howdy, Ryan:
> If you hit my script directly using the if error? try
> statement, the browser displays the "Content-Type:
> text/html" statement at the top of the page. When I view
> source, I see that it is displaying the stylesheet info
> twice, once before the Content-Type statement and once
> afterward. Here is the message-action-cgi function:
Just from the sound of the symptoms, it sounds to me like it
makes it through most of message-action-cgi the first time,
generates an error towards the end and then invokes the
error case which does message-action-cgi a second time.
You may want to amass all the generated output in a string
in message-action-cgi, and only print it when you've made it
to the end of the function, so that you avoid producing a
partial result.
Again, just my speculation. :-)
-jeff