scripts/check_site.lua: show type of incorrect values in error messages
This commit is contained in:
parent
b7be32d9f4
commit
ad7d154c5a
@ -108,7 +108,7 @@ local function var_error(path, val, msg)
|
||||
src = site_src()
|
||||
end
|
||||
|
||||
config_error(src, 'expected %s to %s, but it is %s', path_to_string(path), msg, tostring(val))
|
||||
config_error(src, 'expected %s to %s, but it is %s (a %s value)', path_to_string(path), msg, tostring(val), type(val))
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user