[Someone want to comment on where this global variable gets set and to what good uses one can put it to?]
See also errorCode.
Tcl syntax help