summaryrefslogtreecommitdiff
path: root/Master/bin/win32/runscript.tlu
diff options
context:
space:
mode:
Diffstat (limited to 'Master/bin/win32/runscript.tlu')
-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'}