Menu

#147 sgmlparser.tcl failed to pass along errorCode

Script Library
open
TclXML (91)
5
2005-08-15
2005-08-01
Alvin Leung
No

In sgmlparser.tcl, when an error is thrown in user
code, the error is caught and rethrown by executing

return -code $code -errorinfo $::errorInfo $msg

However, this statement failed to pass along the value
of errorCode, so the global errorCode is reseted to
NONE. The correct code should be

return -code $code -errorinfo $::errorInfo \ -errorcode $::errorCode $msg

I corrected the code and included the diff file.

Discussion

  • Alvin Leung

    Alvin Leung - 2005-08-01

    Diff file of sgmlparser.tcl

     
  • Steve Ball

    Steve Ball - 2005-08-15

    Logged In: YES
    user_id=81778

    The patch will be included in the 3.1 release.

     
  • Steve Ball

    Steve Ball - 2005-08-15
    • assigned_to: nobody --> balls
     

Log in to post a comment.