Overview
| Artifact ID: | 63166364a24f537af70082563946a0cacd6a29bf |
|---|---|
| Ticket: | 2935779fffffffffffffffffffffffffffffffff
Incorrect -errorline from compiled [catch] |
| User & Date: | dgp on 2010-02-18 02:12:39 |
Changes
- icomment:
Contrast these two: % proc test {} { catch { puts foo error bar } m o puts $o } % test foo -code 1 -level 0 -errorcode NONE -errorinfo {bar while executing "error bar"} -errorline 4 % proc test2 {} { set catch catch $catch { puts foo error bar } m o puts $o } % test2 foo -code 1 -level 0 -errorcode NONE -errorinfo {bar while executing "error bar"} -errorline 3 The difference is whether [catch] is compiled, and when it is, it becomes intstructions within the larger proc body script which causes GetSrcInfoForPc() to base its errorLine calculation off the wrong script start. Will get back to this one later. - login: "dgp"
- mimetype: "text/plain"
- priority changed to: "3 Low"
- username: "dgp"