From 7a85e51237384b348cc7a565cd9ccacc9daf478d Mon Sep 17 00:00:00 2001 From: Evgeny Khramtsov Date: Sat, 19 Oct 2019 19:58:42 +0300 Subject: [PATCH] Fix error reporting in configuration related admin commands --- src/ejabberd_admin.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ejabberd_admin.erl b/src/ejabberd_admin.erl index 7776af3a1..2dddb3cad 100644 --- a/src/ejabberd_admin.erl +++ b/src/ejabberd_admin.erl @@ -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. %%%