sergelaurent
Technical User
I want to catch the error code returned by a command whenever it fails without using the catch command!!!!!!
My code is as follows:
set resp [open .....]
When the open command fails, I cannot read the error information returned by this command.
I don't want to use the catch command!!! I found that in tcl, there was a global variable named errorInfo which stores the last error information that occured!!!!
However I don't know how to use it!!! Can someone help me for this command or is there another solution?
My code is as follows:
set resp [open .....]
When the open command fails, I cannot read the error information returned by this command.
I don't want to use the catch command!!! I found that in tcl, there was a global variable named errorInfo which stores the last error information that occured!!!!
However I don't know how to use it!!! Can someone help me for this command or is there another solution?