diff options
author | Matthew Wild <mwild1@gmail.com> | 2025-04-10 11:19:48 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2025-04-10 11:19:48 +0100 |
commit | 22acb5626f84e84a23c3a6807181a02385fb29e2 (patch) | |
tree | 55ee18c063f66dc2c9a2a9e976544853579f56aa /core | |
parent | dcd0d7ad1f411a216fc28bbb629c80ac7515f82c (diff) | |
download | prosody-22acb5626f84e84a23c3a6807181a02385fb29e2.tar.gz prosody-22acb5626f84e84a23c3a6807181a02385fb29e2.zip |
configmanager: Emit config warning when referencing non-existent value
Diffstat (limited to 'core')
-rw-r--r-- | core/configmanager.lua | 10 |
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 |