# HG changeset patch # User Matthew Wild # Date 1744280388 -3600 # Node ID 1b4f2d010141f6db158dced7b22b27e73ab15ef1 # Parent a93e7310bfcdb300e6b05656bdc8f74aa1860b86 configmanager: Emit config warning when referencing non-existent value diff -r a93e7310bfcd -r 1b4f2d010141 core/configmanager.lua --- 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