aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2025-04-10 11:19:48 +0100
committerMatthew Wild <mwild1@gmail.com>2025-04-10 11:19:48 +0100
commit22acb5626f84e84a23c3a6807181a02385fb29e2 (patch)
tree55ee18c063f66dc2c9a2a9e976544853579f56aa /core
parentdcd0d7ad1f411a216fc28bbb629c80ac7515f82c (diff)
downloadprosody-22acb5626f84e84a23c3a6807181a02385fb29e2.tar.gz
prosody-22acb5626f84e84a23c3a6807181a02385fb29e2.zip
configmanager: Emit config warning when referencing non-existent value
Diffstat (limited to 'core')
-rw-r--r--core/configmanager.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/configmanager.lua b/core/configmanager.lua
index 6c6b670b..fc475b6b 100644
--- a/core/configmanager.lua
+++ b/core/configmanager.lua
@@ -227,7 +227,17 @@ do
host = env.__currenthost or "*";
option_name = k;
}, config_option_proxy_mt);
+ elseif val == nil then
+ t_insert(
+ warnings,
+ ("%s: %d: unrecognized value: %s (you may be missing quotes around it)"):format(
+ config_file,
+ get_line_number(config_file),
+ k
+ )
+ );
end
+
return val;
end