Fix warning for misuse of clear_config/2
The old warning message was producing an improperly formatted suggestion.
This commit is contained in:
parent
a07310888f
commit
d5daf59f88
|
@ -42,8 +42,7 @@ defmacro clear_config(config_path, temp_setting) do
|
||||||
# Displaying a warning to prevent unintentional clearing of all but one keys in section
|
# Displaying a warning to prevent unintentional clearing of all but one keys in section
|
||||||
if Keyword.keyword?(temp_setting) and length(temp_setting) == 1 do
|
if Keyword.keyword?(temp_setting) and length(temp_setting) == 1 do
|
||||||
Logger.warn(
|
Logger.warn(
|
||||||
"Please change to `clear_config([section]); clear_config([section, key], value)`: " <>
|
"Please change `clear_config([section], key: value)` to `clear_config([section, key], value)`"
|
||||||
"#{inspect(config_path)}, #{inspect(temp_setting)}"
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue