Overview
| Artifact ID: | 3554c920b5d9221797e99851a7c0f112cdb269e6 |
|---|---|
| Ticket: | 734402ffffffffffffffffffffffffffffffffff
catch fails to catch error |
| User & Date: | msofer on 2003-05-13 03:36:50 |
Changes
- closedate changed to: "2003-05-12T20:36:50"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 Ah, but this distinction has nothing to do with the [catch] command - it is described in the Tcl man page Tcl.n, rule [2]: when you invoke catch [error] the error occurs during the substitution phase, *before* [catch] is called (as it is, it never gets called). Note also that the (buggy) behaviour in 8.3 was inconsistent: % info patch 8.3.4 % catch [error] 1 % set c catch; $c [error] wrong # args: should be "error message ?errorInfo? ?errorCode?"
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"