summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/make4ht/make4ht-errorlogparser.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-09-07 21:20:51 +0000
committerKarl Berry <karl@freefriends.org>2020-09-07 21:20:51 +0000
commit5c122b3fd45bd3b2708e3fc0927e84243d548709 (patch)
tree8930267a2d57bcd925d66d3f3d240e1c4b7a956b /Master/texmf-dist/scripts/make4ht/make4ht-errorlogparser.lua
parent3581485c7b70a58b3297157f006b3260ce2b11c0 (diff)
make4ht (7sep20)
git-svn-id: svn://tug.org/texlive/trunk@56284 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/make4ht/make4ht-errorlogparser.lua')
-rwxr-xr-xMaster/texmf-dist/scripts/make4ht/make4ht-errorlogparser.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/make4ht/make4ht-errorlogparser.lua b/Master/texmf-dist/scripts/make4ht/make4ht-errorlogparser.lua
index b48957c6514..e536370ac98 100755
--- a/Master/texmf-dist/scripts/make4ht/make4ht-errorlogparser.lua
+++ b/Master/texmf-dist/scripts/make4ht/make4ht-errorlogparser.lua
@@ -1,7 +1,10 @@
local m = {}
local function get_filename(chunk)
- local filename = chunk:match("([^\n^%(]+)")
+ local filename = chunk:match("([^\n^%(]+)")
+ if not filename then
+ return false, "No filename detected"
+ end
local first = filename:match("^[%./\\]+")
if first then return filename end
return false