Overview
| Artifact ID: | 6f625f3f7d7a718491ecc35cf899c9a84a6ad4b8 |
|---|---|
| Ticket: | 2142989fffffffffffffffffffffffffffffffff
add examples to the [catch] man page |
| User & Date: | nobody on 2008-10-02 19:32:29 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
I use tcl-8.5.4. In the following code 'catch' returns 1 indicating an error but '::errorInfo' isn't set, producing 'no such variable' message. --- testcase --- proc c {} {} proc main {} { if {[catch { return [c] }]} { puts "ERROR: *$::errorInfo* *************" } } main --- output ---- can't read "::errorInfo": no such variable while executing "puts "ERROR: *$::errorInfo* *************"" - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "None"
- title changed to: "exception is thrown but no ::errorInfo is set"
- type changed to: "Bug"