diff options
| author | dgp@users.sourceforge.net <dgp> | 2008-10-16 16:58:38 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2008-10-16 16:58:38 (GMT) |
| commit | 390574ee873577847d6dc72d08cc7ae7c64b05e6 (patch) | |
| tree | e6ebe9108039d769949e2edc0521b2c280f7bc7c /library/init.tcl | |
| parent | 60c45faf9866ce4190e936e346f668ff3707e684 (diff) | |
| download | tcl-390574ee873577847d6dc72d08cc7ae7c64b05e6.zip tcl-390574ee873577847d6dc72d08cc7ae7c64b05e6.tar.gz tcl-390574ee873577847d6dc72d08cc7ae7c64b05e6.tar.bz2 | |
silence Alex
Diffstat (limited to 'library/init.tcl')
| -rw-r--r-- | library/init.tcl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/library/init.tcl b/library/init.tcl index 8491c16..771b60e 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.104.2.8 2008/10/16 16:07:06 dgp Exp $ +# RCS: @(#) $Id: init.tcl,v 1.104.2.9 2008/10/16 16:58:38 dgp Exp $ # # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -276,12 +276,15 @@ proc unknown args { unset UnknownPending } if {$msg} { - unset -nocomplain ::errorCode ::errorInfo if {[info exists savedErrorCode]} { set ::errorCode $savedErrorCode + } else { + unset -nocomplain ::errorCode } if {[info exists savedErrorInfo]} { set ::errorInfo $savedErrorInfo + } else { + unset -nocomplain ::errorInfo } set code [catch {uplevel 1 $args} msg opts] if {$code == 1} { |
