Skip to content

Commit

Permalink
Check configuration actually exists
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwright committed Dec 7, 2017
1 parent 72dfd9f commit 7f0f7da
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion l3build.lua
Expand Up @@ -2509,7 +2509,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
Expand Down

0 comments on commit 7f0f7da

Please sign in to comment.