[latex3-commits] [git/l3build] master: Check configuration actually exists (3098729)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Dec 12 10:05:33 CET 2017
Repository : https://github.com/latex3/l3build
On branch : master
Link : https://github.com/latex3/l3build/commit/3098729434dc20217e9e2355d798d05b78965a68
>---------------------------------------------------------------
commit 3098729434dc20217e9e2355d798d05b78965a68
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Dec 7 09:31:45 2017 +0000
Check configuration actually exists
>---------------------------------------------------------------
3098729434dc20217e9e2355d798d05b78965a68
l3build.lua | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/l3build.lua b/l3build.lua
index f748f39..884aafb 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -2550,7 +2550,13 @@ end
if #checkconfigs == 1 and
checkconfigs[1] ~= stdconfig and
(options["target"] == "check" or options["target"] == "save") then
- dofile("./" .. checkconfigs[1] .. ".lua")
+ local config = "./" .. checkconfigs[1] .. ".lua"
+ if fileexists(config) then
+ dofile(config)
+ else
+ print("Error: Cannot find configuration " .. checkconfigs[1])
+ exit(1)
+ end
end
-- Call the main function
More information about the latex3-commits
mailing list