From: Mats B. <ma...@pr...> - 2001-10-02 16:20:02
|
Ste...@zv... wrote: > > Mats Bengtsson wrote: > > Steve Ball wrote: > > > Mats Bengtsson wrote: > > > > > > > > The docs for TclXML specify the -errorcommand proc to take two parameters, > > > > 'tclProc errorcode errormessage', but browsing through the 'sgmlparser.tcl' > > > > file, the error proc is usually called as: > > > > > > > > uplevel #0 $options(-errorcommand) "$attr around line $state(line)" > > ... > > > > > > > > Am I right here? > > > > > > Hmmm... yes I'd say so. The Error procedure in sgml-8.[01].tcl simply > > > uses 'args'. Sorry about that! Would you care to submit a patch? ;-) > > > > > > > Since I don't know the code that well, the risk is that I create more > > errors than I fix. > > That's what the regression test suite is for. Make your changes, and > then > run 'make test'. > Ok, I'll give it a try. But I need to know your intentions with the 'errorcode errormessage' parameters. The 'errormessage' is obviously the present text string, but what about 'errorcode'? Is that a numerical three digit string, or just a brief 'errormessage'? /Mats |