[latex3-commits] [git/LaTeX3-latex3-l3build] checkinit-error: Propagate error codes from checkinit() (30ce000)
Marcel Fabian Krüger
tex at 2krueger.de
Thu May 13 11:24:46 CEST 2021
Repository : https://github.com/latex3/l3build
On branch : checkinit-error
Link : https://github.com/latex3/l3build/commit/30ce000e6610feefa5aee6958014fe1be97468cb
>---------------------------------------------------------------
commit 30ce000e6610feefa5aee6958014fe1be97468cb
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Thu May 13 11:24:46 2021 +0200
Propagate error codes from checkinit()
Fixes #189.
>---------------------------------------------------------------
30ce000e6610feefa5aee6958014fe1be97468cb
l3build-check.lua | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/l3build-check.lua b/l3build-check.lua
index 47ab19c..2ed08cb 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -849,7 +849,10 @@ function check(names)
local errorlevel = 0
if testfiledir ~= "" and direxists(testfiledir) then
if not options["rerun"] then
- checkinit()
+ errorlevel = checkinit()
+ if errorlevel ~= 0 then
+ return errorlevel
+ end
end
local hide = true
if names and next(names) then
@@ -994,7 +997,12 @@ function showfaileddiff()
end
function save(names)
- checkinit()
+ do
+ local errorlevel = checkinit()
+ if errorlevel ~= 0 then
+ return errorlevel
+ end
+ end
local engines = options["engine"] or {stdengine}
if names == nil then
print("Arguments are required for the save command")
More information about the latex3-commits
mailing list.