summaryrefslogtreecommitdiffstats
path: root/library/safe.tcl
diff options
context:
space:
mode:
authorkjnash <k.j.nash@usa.net>2020-08-28 02:27:36 (GMT)
committerkjnash <k.j.nash@usa.net>2020-08-28 02:27:36 (GMT)
commit230aa0cc4b8b1e9a50c0e2d505dde9c38a1e9d1b (patch)
tree31f0f2b36ea4a3a4ff4513bdb48684264414dd82 /library/safe.tcl
parentbba42d0251c44fb8d13efa3b72c1b443dab6063f (diff)
parentde01488d552554c385f9e2b1f831eae5ac97c336 (diff)
downloadtcl-230aa0cc4b8b1e9a50c0e2d505dde9c38a1e9d1b.zip
tcl-230aa0cc4b8b1e9a50c0e2d505dde9c38a1e9d1b.tar.gz
tcl-230aa0cc4b8b1e9a50c0e2d505dde9c38a1e9d1b.tar.bz2
Merge safe-extra-tests-8-7
Diffstat (limited to 'library/safe.tcl')
-rw-r--r--library/safe.tcl7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/safe.tcl b/library/safe.tcl
index b5ee95f..5f6bed1 100644
--- a/library/safe.tcl
+++ b/library/safe.tcl
@@ -1167,6 +1167,13 @@ proc ::safe::AliasLoad {slave file args} {
try {
return [::interp invokehidden $slave load $file $package $target]
} on error msg {
+ # Some packages return no error message.
+ set msg0 "load of binary library for package $package failed"
+ if {$msg eq {}} {
+ set msg $msg0
+ } else {
+ set msg "$msg0: $msg"
+ }
Log $slave $msg
return -code error $msg
}