summaryrefslogtreecommitdiffstats
path: root/library/safe.tcl
diff options
context:
space:
mode:
authorkjnash <k.j.nash@usa.net>2020-08-28 01:31:43 (GMT)
committerkjnash <k.j.nash@usa.net>2020-08-28 01:31:43 (GMT)
commitab94b4c534d6658aa8dc90344d8974b031a4f2ed (patch)
tree8a7c7e362a0c8bea7759bac4042ccbd372d97bb2 /library/safe.tcl
parentb5e50e499a5d929d19780a5cf3dcedc7b13731a0 (diff)
parent953e3ea89962393c4b65866feb0f3d38f4bc8b14 (diff)
downloadtcl-ab94b4c534d6658aa8dc90344d8974b031a4f2ed.zip
tcl-ab94b4c534d6658aa8dc90344d8974b031a4f2ed.tar.gz
tcl-ab94b4c534d6658aa8dc90344d8974b031a4f2ed.tar.bz2
Merge safe-bugfixes-8-6
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 164ccab..681d843 100644
--- a/library/safe.tcl
+++ b/library/safe.tcl
@@ -1066,6 +1066,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
}