25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

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

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.
%%%