From 5bc4936f5fe729bf48a9af6ea59de450969943e3 Mon Sep 17 00:00:00 2001 From: Joseph Wright Date: Mon, 6 May 2024 08:33:20 +0100 Subject: [PATCH] Ensure errorlevel is always set up --- l3build-typesetting.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/l3build-typesetting.lua b/l3build-typesetting.lua index 9b295c0..eaffbe6 100644 --- a/l3build-typesetting.lua +++ b/l3build-typesetting.lua @@ -181,8 +181,9 @@ function docinit_hook() return 0 end -- Typeset all required documents -- Uses a set of dedicated auxiliaries that need to be available to others function doc(files) + local errorlevel = 0 if not options["rerun"] then - local errorlevel = docinit() + errorlevel = docinit() end if errorlevel ~= 0 then return errorlevel end local done = {}