[latex3-commits] [git/LaTeX3-latex3-l3build] master: improve messages for the save command (#106) (3465826)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Oct 28 14:44:49 CET 2019
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/3465826b92624b23845c1007d4fd5049b510ed55
>---------------------------------------------------------------
commit 3465826b92624b23845c1007d4fd5049b510ed55
Author: Takuto ASAKURA <wtsnjp at gmail.com>
Date: Mon Oct 28 22:44:49 2019 +0900
improve messages for the save command (#106)
- prevent an internal error when no argument is given and clearly point out
arguments are required for the command
- fix trivial spacing problems
>---------------------------------------------------------------
3465826b92624b23845c1007d4fd5049b510ed55
l3build-check.lua | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/l3build-check.lua b/l3build-check.lua
index b159b4d..0f7eff7 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -960,6 +960,10 @@ end
function save(names)
checkinit()
local engines = options["engine"] or {stdengine}
+ if names == nil then
+ print("Arguments are required for the save command")
+ return 1
+ end
for _,name in pairs(names) do
if testexists(name) then
for _,engine in pairs(engines) do
@@ -991,7 +995,7 @@ function save(names)
.. lveext .. " file of the same name")
return 1
else
- print('Test "'.. name .. '"not found')
+ print('Test "' .. name .. '" not found')
return 1
end
end
More information about the latex3-commits
mailing list