From 43628c16795f0d149c43674e77eb0992ad00d24c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 19 Jan 2018 10:59:45 +0100 Subject: [PATCH] scripts/check_site_lib.lua: improve display of invalid values --- scripts/check_site_lib.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/check_site_lib.lua b/scripts/check_site_lib.lua index 7078e9fa..c5296f93 100644 --- a/scripts/check_site_lib.lua +++ b/scripts/check_site_lib.lua @@ -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