You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by da...@apache.org on 2002/03/14 08:03:43 UTC
cvs commit: tcl-rivet/rivet init.tcl
damonc 02/03/13 23:03:43
Modified: rivet init.tcl
Log:
* rivet/init.tcl
Changed the default error handler to a Tcl proc.
Revision Changes Path
1.3 +11 -0 tcl-rivet/rivet/init.tcl
Index: init.tcl
===================================================================
RCS file: /home/cvs/tcl-rivet/rivet/init.tcl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- init.tcl 19 Jan 2002 23:27:01 -0000 1.2
+++ init.tcl 14 Mar 2002 07:03:43 -0000 1.3
@@ -19,6 +19,17 @@
}
}
+ proc handle_error {} {
+ global errorInfo
+ global errorOutbuf
+
+ puts <PRE>
+ puts "<HR>$errorInfo<HR>"
+ puts "<P><B>OUTPUT BUFFER:</B></P>"
+ puts $errorOutbuf
+ puts </PRE>
+ }
+
###
## This routine gets called each time a request is finished. Any kind
## of special cleanup can be placed here.
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org
Re: cvs commit: tcl-rivet/rivet init.tcl
Posted by "David N. Welton" <da...@dedasys.com>.
Damon Courtney <da...@your.unreality.com> writes:
> I was really having a bitch of a time before I fixed the error handling
> though. The first time you hit an error, you'd get nothing. The next time,
> you might hit another child server and still get nothing. I had to reload
> the page several times in order to finally get my error to spit out.
> Then, I'd still get the error way later on as another server caught up.
> Sheez. 0-]
>
> Much nicer now. You get the error message when the error occurs. 0-]
Cool, I was having that problem too. I will try and write some test
scripts to exercise the Conf stuff some. With the new server start
proc, I ought to be able to have more control over a few things such
as tweaking directives at run-time needed to give this code a good
going-over.
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org
Re: cvs commit: tcl-rivet/rivet init.tcl
Posted by Damon Courtney <da...@your.unreality.com>.
> damonc@apache.org writes:
>
> > * rivet/init.tcl
> > Changed the default error handler to a Tcl proc.
>
> What if our interpreter is in a bad state for some reason? I think
> it's a good idea, though.
Well, in that case, we'll get an error message from the error script.
I see what you mean though. I don't think this will be a case though.
I was really having a bitch of a time before I fixed the error handling
though. The first time you hit an error, you'd get nothing. The next time,
you might hit another child server and still get nothing. I had to reload
the page several times in order to finally get my error to spit out.
Then, I'd still get the error way later on as another server caught up.
Sheez. 0-]
Much nicer now. You get the error message when the error occurs. 0-]
D
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org
Re: cvs commit: tcl-rivet/rivet init.tcl
Posted by "David N. Welton" <da...@dedasys.com>.
damonc@apache.org writes:
> * rivet/init.tcl
> Changed the default error handler to a Tcl proc.
What if our interpreter is in a bad state for some reason? I think
it's a good idea, though.
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org