jdc8 / wub

Automatically exported from code.google.com/p/wub
0 stars 0 forks source link

errorInfo global var contains 'wrong # args: should be "error message ?errorInfo? ?errorCode?"' #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What version of the product are you using? On what operating system?
svn latest - windows

Please provide any additional information below.

the errorInfo variable keeps getting overwritten with
wrong # args: should be "error message ?errorInfo? ?errorCode?"

I tracked this down to the watchdog timer.

     } elseif {$rc == [catch error ""]} {

I think you meant     
     } elseif {$rc == [catch {error ""}]} {

but I don't like that solution either.  It just populates errorInfo with 
something else.

I'd suggest either

     } elseif {$rc == 1} {

or if you really want to let tcl supply the code

     ...
     set temp_errorInfo $::errorInfo
     ...
     } elseif {$rc == [catch {error ""}]} {

     ...
     set errorInfo $temp_errorInfo

but I think the first approach is a lot easier.

Original issue reported on code.google.com by tircnf on 29 Apr 2011 at 6:33

GoogleCodeExporter commented 9 years ago

Original comment by mcc...@gmail.com on 30 Apr 2011 at 2:25