25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

Fix dialyzer warnings

This commit is contained in:
Evgeniy Khramtsov 2011-09-17 10:48:52 +10:00
parent 2494e39c9e
commit ede8d57373

View File

@ -269,8 +269,8 @@ try_call_command(Args, Auth, AccessCommands) ->
try call_command(Args, Auth, AccessCommands) of try call_command(Args, Auth, AccessCommands) of
{error, command_unknown} -> {error, command_unknown} ->
{io_lib:format("Error: command ~p not known.", [hd(Args)]), ?STATUS_ERROR}; {io_lib:format("Error: command ~p not known.", [hd(Args)]), ?STATUS_ERROR};
{error, wrong_number_parameters} -> {error, wrong_command_arguments} ->
{"Error: wrong number of parameters", ?STATUS_ERROR}; {"Error: wrong arguments", ?STATUS_ERROR};
Res -> Res ->
Res Res
catch catch
@ -637,7 +637,7 @@ print_usage_help(MaxC, ShCode) ->
ArgsDef = [], ArgsDef = [],
C = #ejabberd_commands{ C = #ejabberd_commands{
desc = "Show help of ejabberd commands", desc = "Show help of ejabberd commands",
longdesc = LongDesc, longdesc = lists:flatten(LongDesc),
args = ArgsDef, args = ArgsDef,
result = {help, string}}, result = {help, string}},
print_usage_command("help", C, MaxC, ShCode). print_usage_command("help", C, MaxC, ShCode).