Fix error reporting in configuration related admin commands

This commit is contained in:
Evgeny Khramtsov 2019-10-19 19:58:42 +03:00
parent a23b6fb7ec
commit 7a85e51237
1 changed files with 3 additions and 3 deletions

View File

@ -549,7 +549,7 @@ reload_config() ->
ok -> {ok, ""};
Err ->
Reason = ejabberd_config:format_error(Err),
{invalid_config, Reason}
{error, Reason}
end.
dump_config(Path) ->
@ -557,7 +557,7 @@ dump_config(Path) ->
ok -> {ok, ""};
Err ->
Reason = ejabberd_config:format_error(Err),
{invalid_file, Reason}
{error, Reason}
end.
convert_to_yaml(In, Out) ->
@ -565,7 +565,7 @@ convert_to_yaml(In, Out) ->
ok -> {ok, ""};
Err ->
Reason = ejabberd_config:format_error(Err),
{invalid_config, Reason}
{error, Reason}
end.
%%%