summaryrefslogtreecommitdiffstats
path: root/library/iconlist.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'library/iconlist.tcl')
-rw-r--r--library/iconlist.tcl10
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?\""
}
}