diff --git a/conf.v b/conf.v index 564f7e8..fdd0a6e 100644 --- a/conf.v +++ b/conf.v @@ -98,7 +98,7 @@ pub fn load(conf LoadConfig) !T { has_value[field.name] = true } - if !(has_values[field.name] or { false }) { + if !(has_value[field.name] or { false }) { return error("Missing config variable '$field.name' with no provided default. Either add it to the config file or provide it using an environment variable.") } }