mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
When rescode is some unexpected, probably error message, print it
This commit is contained in:
parent
22980ed8a5
commit
4aa85c538c
@ -472,7 +472,9 @@ make_status(ok) -> ?STATUS_SUCCESS;
|
|||||||
make_status(true) -> ?STATUS_SUCCESS;
|
make_status(true) -> ?STATUS_SUCCESS;
|
||||||
make_status(Code) when is_integer(Code), Code > 255 -> ?STATUS_ERROR;
|
make_status(Code) when is_integer(Code), Code > 255 -> ?STATUS_ERROR;
|
||||||
make_status(Code) when is_integer(Code), Code > 0 -> Code;
|
make_status(Code) when is_integer(Code), Code > 0 -> Code;
|
||||||
make_status(_Error) -> ?STATUS_ERROR.
|
make_status(Error) ->
|
||||||
|
io:format("Error: ~p~n", [Error]),
|
||||||
|
?STATUS_ERROR.
|
||||||
|
|
||||||
get_list_commands(Version) ->
|
get_list_commands(Version) ->
|
||||||
try ejabberd_commands:list_commands(Version) of
|
try ejabberd_commands:list_commands(Version) of
|
||||||
|
Loading…
Reference in New Issue
Block a user