I have a script debug.tcl (published to egghelp) which, rather than the minimal error messages that show in the partyline, gives a full trace on any errors that occur using the variable errorInfo. This can be very useful if, in the script causing the error, a proc calls a proc that calls a proc etc that generates the error.
Whilst the script performs as expected, there is one, sometimes annoying, aspect of its performance that I would like to change. This concerns errors generated from a catch statement. An error trapped by a catch statement does not show in the partyline but yet does write to errorInfo, as a consequence my script picks it up and generates an output.
I am thinking therefore that there is a discernable difference between such errors that causes the normal partyline message to be nullified in the case of properly caught errors. Perhaps something within tclvars. I would ideally like to employ a user configured variable within my script to give the choice of showing caught errors or not.
Any thoughts on how to identify the difference between a genuine error and one trapped by a catch statement would be appreciated.