Overview
| Artifact ID: | 48330313ae30f8ec108b1b45f20b5f9e8aa9987a |
|---|---|
| Ticket: | 760947ffffffffffffffffffffffffffffffffff
trace on command leave changes errorInfo/errorCode |
| User & Date: | yahalom on 2003-06-26 04:02:58 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
Tcl Version 8.4.3 OS Platform and Version: windows 2000,linux redhat 7.3 when putting a trace on command execution leave the errorInfo and errorCode are not being set properly when an error happens in the command being called proc traceLog {cmd info {result ""} {op ""}} { puts "----- trace -----" puts "command: $cmd" puts "info: $info" puts "result: $result" puts "op: $op" puts "----- leave trace -----" } proc test {} { error "testMsg" "testInfo" "testCode" } for {set i 0} {$i<2} {incr i} { catch {test} msg puts "message: $msg" puts "errorInfo: $errorInfo" puts "errorCode: $errorCode" unset msg unset errorCode unset errorInfo trace add execution test leave {traceLog} } result: message: testMsg errorInfo: testInfo (procedure "test" invoked from with "test" errorCode: testCode ----- trace ----- command: test info: 1 result: testMsg op: leave ----- leave trace --- message: testMsg errorInfo: testMsg while executing "test" errorCode: NONE - foundin changed to: "obsolete: 8.4.3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "yahalom"
- subsystem changed to: "18. Commands M-Z"
- title changed to: "trace on command leave changes errorInfo/errorCode"
- type changed to: "Bug"