summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/make4ht/make4ht-errorlogparser.lua
diff options
context:
space:
mode:
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