Skip to content
Snippets Groups Projects
Unverified Commit 43628c16 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

scripts/check_site_lib.lua: improve display of invalid values

parent 7ccdacd2
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,10 @@ local function array_to_string(array)
end
local function var_error(path, val, msg)
if type(val) == 'string' then
val = string.format('%q', val)
end
print(string.format('*** site.conf error: expected %s to %s, but it is %s', path_to_string(path), msg, tostring(val)))
os.exit(1)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment