diff options
author | kjnash <k.j.nash@usa.net> | 2020-08-28 02:27:36 (GMT) |
---|---|---|
committer | kjnash <k.j.nash@usa.net> | 2020-08-28 02:27:36 (GMT) |
commit | 230aa0cc4b8b1e9a50c0e2d505dde9c38a1e9d1b (patch) | |
tree | 31f0f2b36ea4a3a4ff4513bdb48684264414dd82 /library/safe.tcl | |
parent | bba42d0251c44fb8d13efa3b72c1b443dab6063f (diff) | |
parent | de01488d552554c385f9e2b1f831eae5ac97c336 (diff) | |
download | tcl-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.tcl | 7 |
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 } |