Skip to content

Commit

Permalink
yamlconfig: clarify error message
Browse files Browse the repository at this point in the history
  • Loading branch information
vmatare committed Jul 12, 2023
1 parent 1c20fda commit b1ad819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yamlconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ bool convert<wtf_ptr<Config>>::decode(const Node &node, wtf_ptr<Config> &config)
if (node[kw_levels]) {
// Separate "levels:" section
if (config->fan_configs().size())
throw YamlError(get_mark_compat(node), "Cannot have a separate 'levels:' section when some fan already has specific levels assigned");
throw YamlError(get_mark_compat(node), "Cannot have a global 'levels:' section when some fan already has specific levels assigned");
if (!node[kw_levels].IsSequence())
throw YamlError(get_mark_compat(node), "Level entries must be a sequence. Forgot the dashes?");

Expand Down

0 comments on commit b1ad819

Please sign in to comment.