Software /
code /
prosody
Changeset
13840:1b4f2d010141 13.0
configmanager: Emit config warning when referencing non-existent value
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 10 Apr 2025 11:19:48 +0100 |
parents | 13838:a93e7310bfcd |
children | 13841:d01cfbb7fc4f |
files | core/configmanager.lua |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/configmanager.lua Thu Apr 10 00:22:44 2025 +0200 +++ b/core/configmanager.lua Thu Apr 10 11:19:48 2025 +0100 @@ -227,7 +227,17 @@ 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