summaryrefslogtreecommitdiffstats
path: root/library/unsupported.tcl
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-08-27 19:48:23 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-08-27 19:48:23 (GMT)
commitc422e69fb20bdd6f7eeaec2f67d5dc35874f6c97 (patch)
treec8cd1c66faa65fac8be9a9a85c0fc3ba7b8a564f /library/unsupported.tcl
parentf3c1619ae427be91cfa91ee6bcea3b7445ab72ef (diff)
parentcff7e38ce85264e816b2d388b46b144e84d2bfab (diff)
downloadtk-c422e69fb20bdd6f7eeaec2f67d5dc35874f6c97.zip
tk-c422e69fb20bdd6f7eeaec2f67d5dc35874f6c97.tar.gz
tk-c422e69fb20bdd6f7eeaec2f67d5dc35874f6c97.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/unsupported.tcl')
-rw-r--r--library/unsupported.tcl6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/unsupported.tcl b/library/unsupported.tcl
index feb9cc5..2c68e78 100644
--- a/library/unsupported.tcl
+++ b/library/unsupported.tcl
@@ -231,7 +231,8 @@ proc ::tk::unsupported::ExposePrivateCommand {cmd} {
variable PrivateCommands
set cmds [array get PrivateCommands $cmd]
if {[llength $cmds] == 0} {
- return -code error "No compatibility support for \[$cmd]"
+ return -code error -errorcode {TK EXPOSE_PRIVATE_COMMAND} \
+ "No compatibility support for \[$cmd]"
}
foreach {old new} $cmds {
namespace eval :: [list interp alias {} $old {}] $new
@@ -258,7 +259,8 @@ proc ::tk::unsupported::ExposePrivateVariable {var} {
variable PrivateVariables
set vars [array get PrivateVariables $var]
if {[llength $vars] == 0} {
- return -code error "No compatibility support for \$$var"
+ return -code error -errorcode {TK EXPOSE_PRIVATE_VARIABLE} \
+ "No compatibility support for \$$var"
}
namespace eval ::tk::mac {}
foreach {old new} $vars {