summaryrefslogtreecommitdiff
path: root/Master/bin
diff options
context:
space:
mode:
authorSiep Kroonenberg <siepo@cybercomm.nl>2019-07-04 18:48:23 +0000
committerSiep Kroonenberg <siepo@cybercomm.nl>2019-07-04 18:48:23 +0000
commit85595b28c0d98bc33512d9f409770cbfb6bb7cf9 (patch)
tree0a57a8401651d035cb92559862bfcfe9a8c4be8d /Master/bin
parentce05cb8b219711b74cbc19898837f9485c598608 (diff)
runscript GUI error messages with vbscript rather than tcl
git-svn-id: svn://tug.org/texlive/trunk@51550 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin')
-rwxr-xr-xMaster/bin/win32/runscript.tlu7
1 files changed, 6 insertions, 1 deletions
diff --git a/Master/bin/win32/runscript.tlu b/Master/bin/win32/runscript.tlu
index 9a60015f487..a872e00330b 100755
--- a/Master/bin/win32/runscript.tlu
+++ b/Master/bin/win32/runscript.tlu
@@ -285,8 +285,13 @@ local guimode
local function show_error(msg)
if guimode then
+ local err_cmd
os.setenv('RUNSCRIPT_ERROR_MESSAGE', msg)
- if lfs.isfile(TEXDIR..'/tlpkg/tltcl/tclkit.exe') and
+ local errmess_path = TEXDIR .. '/texmf-dist/scripts/texlive/tl-errmess.vbs'
+ local err_cmd = {"wscript", errmess_path:gsub('/','\\')}
+ if lfs.isfile(errmess_path) then
+ os.spawn(err_cmd)
+ elseif lfs.isfile(TEXDIR..'/tlpkg/tltcl/tclkit.exe') and
lfs.isfile(TEXDIR..'/tlpkg/tltcl/gui_err.tcl') then
os.spawn{TEXDIR..'/tlpkg/tltcl/tclkit.exe',
TEXDIR..'/tlpkg/tltcl/gui_err.tcl'}