diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-27 19:48:23 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-08-27 19:48:23 (GMT) |
commit | 55ad282f48e04748a7cf3d375ad3fc2abb47c0a1 (patch) | |
tree | c8cd1c66faa65fac8be9a9a85c0fc3ba7b8a564f /library/iconlist.tcl | |
parent | bd27ced6025b5ce285080806ecd44c8b9bc1786a (diff) | |
parent | ef65c6ff80f269b8e94aa1ff98e76831b93c4550 (diff) | |
download | tk-55ad282f48e04748a7cf3d375ad3fc2abb47c0a1.zip tk-55ad282f48e04748a7cf3d375ad3fc2abb47c0a1.tar.gz tk-55ad282f48e04748a7cf3d375ad3fc2abb47c0a1.tar.bz2 |
Generate -errorcode values to go with errors. Generate messages and postscript
using Tcl_Obj API, not the string result API.
Diffstat (limited to 'library/iconlist.tcl')
-rw-r--r-- | library/iconlist.tcl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/library/iconlist.tcl b/library/iconlist.tcl index ce1aae2..62b0b2d 100644 --- a/library/iconlist.tcl +++ b/library/iconlist.tcl @@ -98,8 +98,9 @@ package require Tk 8.6 set first [set last [lindex $args 0]] } default { - return -code error "wrong # args: should be\ - \"[lrange [info level 0] 0 1] first ?last?\"" + return -code error -errorcode {TCL WRONGARGS} \ + "wrong # args: should be\ + \"[lrange [info level 0] 0 1] first ?last?\"" } } @@ -149,8 +150,9 @@ package require Tk 8.6 set first [set last [lindex $args 0]] } default { - return -code error "wrong # args: should be\ - \"[lrange [info level 0] 0 1] first ?last?\"" + return -code error -errorcode {TCL WRONGARGS} \ + "wrong # args: should be\ + \"[lrange [info level 0] 0 1] first ?last?\"" } } |