summaryrefslogtreecommitdiffstats
path: root/library/console.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/console.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/console.tcl')
-rw-r--r--library/console.tcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/console.tcl b/library/console.tcl
index 37832f2..ab074f5 100644
--- a/library/console.tcl
+++ b/library/console.tcl
@@ -976,8 +976,8 @@ proc ::tk::console::Expand {w {type ""}} {
proc ::tk::console::ExpandPathname str {
set pwd [EvalAttached pwd]
- if {[catch {EvalAttached [list cd [file dirname $str]]} err]} {
- return -code error $err
+ if {[catch {EvalAttached [list cd [file dirname $str]]} err opt]} {
+ return -options $opt $err
}
set dir [file tail $str]
## Check to see if it was known to be a directory and keep the trailing