On Sat, 29 Sep 2018, Donal K. Fellows wrote:
> With 8.6's [try] (and the work we put in to make error codes more
> consistently useful), you can do this instead:
>
> try {
> db close
> } trap {TCL LOOKUP COMMAND} {} {
> # Ignore it or log it or something...
> }
>
> The good thing is that this won't trap anything else.
Well, and how do I know these error codes?
In the tcls man page for "open" I see: "ERROR CODES (Windows only)".
Not interesting for me.
And since there is no man page for non existent procedures, I have
no idea where to find the error codes for them. Well:
--
% xyz
invalid command name "xyz"
% puts $errorCode
TCL LOOKUP COMMAND xyz
--
I suppose, it analogue for every non existent function????
Rodrigo