summaryrefslogtreecommitdiffstats
path: root/library/init.tcl
diff options
context:
space:
mode:
authorericm <ericm>2000-02-01 19:26:07 (GMT)
committerericm <ericm>2000-02-01 19:26:07 (GMT)
commit178a952f93e48b971bbd9767f1665c47ce5b0c2f (patch)
tree7287b79ec3884dad2d2be000a4321af67885ee18 /library/init.tcl
parent79bed9aebe06481c96d3325669973e55468c6e70 (diff)
downloadtcl-178a952f93e48b971bbd9767f1665c47ce5b0c2f.zip
tcl-178a952f93e48b971bbd9767f1665c47ce5b0c2f.tar.gz
tcl-178a952f93e48b971bbd9767f1665c47ce5b0c2f.tar.bz2
* library/init.tcl: Applied patch from rfe 1734 regarding
auto_load errors not setting error message and errorInfo properly.
Diffstat (limited to 'library/init.tcl')
-rw-r--r--library/init.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/init.tcl b/library/init.tcl
index ecc926f..0b3d546 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.38 2000/02/01 01:14:01 ericm Exp $
+# RCS: @(#) $Id: init.tcl,v 1.39 2000/02/01 19:26:08 ericm Exp $
#
# Copyright (c) 1991-1993 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -191,8 +191,8 @@ proc unknown args {
set ret [catch {auto_load $name [uplevel 1 {namespace current}]} msg]
unset unknown_pending($name);
if {$ret != 0} {
- return -code $ret -errorcode $errorCode \
- "error while autoloading \"$name\": $msg"
+ append errorInfo "\n (autoloading \"$name\")"
+ return -code $ret -errorcode $errorCode -errorinfo $errorInfo $msg
}
if {![array size unknown_pending]} {
unset unknown_pending