summaryrefslogtreecommitdiffstats
path: root/unix/tclLoadDyld.c
diff options
context:
space:
mode:
authordas <das>2002-10-29 00:04:07 (GMT)
committerdas <das>2002-10-29 00:04:07 (GMT)
commite3448f1a131ac9ad584f324906217bb63584e131 (patch)
treeb0484e1f1edb599778e180095cf5a10381240990 /unix/tclLoadDyld.c
parent6391de758d94624aefe9bbd2819816aff240c2ec (diff)
downloadtcl-e3448f1a131ac9ad584f324906217bb63584e131.zip
tcl-e3448f1a131ac9ad584f324906217bb63584e131.tar.gz
tcl-e3448f1a131ac9ad584f324906217bb63584e131.tar.bz2
* unix/tclLoadDyld.c (Tcl_PackageInitProc): pass all dyld error
messages upstream [Bug #627546].
Diffstat (limited to 'unix/tclLoadDyld.c')
-rw-r--r--unix/tclLoadDyld.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/unix/tclLoadDyld.c b/unix/tclLoadDyld.c
index 531a3c2..906cce3 100644
--- a/unix/tclLoadDyld.c
+++ b/unix/tclLoadDyld.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclLoadDyld.c,v 1.13 2002/10/10 12:25:53 vincentdarley Exp $
+ * RCS: @(#) $Id: tclLoadDyld.c,v 1.14 2002/10/29 00:04:08 das Exp $
*/
#include "tclInt.h"
@@ -151,6 +151,11 @@ TclpFindSymbol(interp, loadHandle, symbol)
dyldModuleHandle->nextModuleHandle = dyldLoadHandle->firstModuleHandle;
dyldLoadHandle->firstModuleHandle = dyldModuleHandle;
}
+ } else {
+ NSLinkEditErrors editError;
+ char *name, *msg;
+ NSLinkEditError(&editError, &errno, &name, &msg);
+ Tcl_AppendResult(interp, msg, (char *) NULL);
}
Tcl_DStringFree(&newName);
Tcl_DStringFree(&ds);