summaryrefslogtreecommitdiffstats
path: root/library/clrpick.tcl
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2012-08-27 19:48:23 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2012-08-27 19:48:23 (GMT)
commitff3a1a8c23b3b9ef694a33cbb69a1482a98a28f7 (patch)
treec8cd1c66faa65fac8be9a9a85c0fc3ba7b8a564f /library/clrpick.tcl
parent095542f032851dd6bad287ca01dc08dae62e14b3 (diff)
parent637dd784df5aa966405b6409ae1ea6d2fd0e0d4d (diff)
downloadtk-ff3a1a8c23b3b9ef694a33cbb69a1482a98a28f7.zip
tk-ff3a1a8c23b3b9ef694a33cbb69a1482a98a28f7.tar.gz
tk-ff3a1a8c23b3b9ef694a33cbb69a1482a98a28f7.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/clrpick.tcl')
-rw-r--r--library/clrpick.tcl6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/clrpick.tcl b/library/clrpick.tcl
index 092915c..3772a30 100644
--- a/library/clrpick.tcl
+++ b/library/clrpick.tcl
@@ -190,11 +190,13 @@ proc ::tk::dialog::color::Config {dataName argList} {
set data(-title) " "
}
if {[catch {winfo rgb . $data(-initialcolor)} err]} {
- error $err
+ return -code error -errorcode [list TK LOOKUP COLOR $data(-initialcolor)] \
+ $err
}
if {![winfo exists $data(-parent)]} {
- error "bad window path name \"$data(-parent)\""
+ return -code error -errorcode [list TK LOOKUP WINDOW $data(-parent)] \
+ "bad window path name \"$data(-parent)\""
}
}