logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: d5daf59f8863e8762041becff0d0878edd15440e
parent a07310888fa3d46a36f3185ed09da7243921dad4
Author: Mark Felder <feld@feld.me>
Date:   Fri,  4 Jun 2021 15:35:56 -0500

Fix warning for misuse of clear_config/2

The old warning message was producing an improperly formatted suggestion.

Diffstat:

Mtest/support/helpers.ex3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/support/helpers.ex b/test/support/helpers.ex @@ -42,8 +42,7 @@ defmodule Pleroma.Tests.Helpers do # 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 Logger.warn( - "Please change to `clear_config([section]); clear_config([section, key], value)`: " <> - "#{inspect(config_path)}, #{inspect(temp_setting)}" + "Please change `clear_config([section], key: value)` to `clear_config([section, key], value)`" ) end