diff options
author | dgp <dgp@noemail.net> | 2004-11-30 20:29:59 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2004-11-30 20:29:59 (GMT) |
commit | 18b8551706461f917ef91405df5f00517773b75a (patch) | |
tree | b67d34782aaf9a886902ece7e9ae022a52d4dbe6 /library | |
parent | e5f74fd928a9096fd9fee2c495c87fad07d232ee (diff) | |
download | tcl-18b8551706461f917ef91405df5f00517773b75a.zip tcl-18b8551706461f917ef91405df5f00517773b75a.tar.gz tcl-18b8551706461f917ef91405df5f00517773b75a.tar.bz2 |
* library/init.tcl ([unknown]): Restored the save/restore of
the variables ::errorCode and ::errorInfo. This is needed when
the [::bgerror] command is auto-loaded (as it is by Tk).
FossilOrigin-Name: e254f917967fca26e5b98f5e13a3a3ad2c7d9c11
Diffstat (limited to 'library')
-rw-r--r-- | library/init.tcl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/library/init.tcl b/library/init.tcl index c16e515..7cf784b 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -3,7 +3,7 @@ # Default system startup file for Tcl-based applications. Defines # "unknown" procedure and auto-load facilities. # -# RCS: @(#) $Id: init.tcl,v 1.67 2004/11/03 20:30:21 dgp Exp $ +# RCS: @(#) $Id: init.tcl,v 1.68 2004/11/30 20:30:04 dgp Exp $ # # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -179,6 +179,8 @@ proc unknown args { return -options $opts $result } + set savedErrorCode $::errorCode + set savedErrorInfo $::errorInfo set name [lindex $args 0] if {![info exists auto_noload]} { # @@ -201,6 +203,8 @@ proc unknown args { unset UnknownPending } if {$msg} { + set ::errorCode $savedErrorCode + set ::errorInfo $savedErrorInfo set code [catch {uplevel 1 $args} msg opts] if {$code == 1} { # |