aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2011-02-23 16:51:40 +0100
committerBadlop <badlop@process-one.net>2011-02-23 16:51:40 +0100
commit9a55ced505729f803d3e21c3440440d9bb5d9a4c (patch)
treed79b8d1af7c71951765c18600066225c51402a3f
parentRevert "Mention in release notes that Pubsub/PEP isn't ready for alpha-testin... (diff)
Fix to show correctly the command that is unknown
-rw-r--r--src/ejabberd_ctl.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_ctl.erl b/src/ejabberd_ctl.erl
index e1fd09d67..e61050363 100644
--- a/src/ejabberd_ctl.erl
+++ b/src/ejabberd_ctl.erl
@@ -283,7 +283,7 @@ call_command([CmdString | Args], Auth, AccessCommands) ->
Command = list_to_atom(CmdStringU),
case ejabberd_commands:get_command_format(Command) of
{error, command_unknown} ->
- {error, io_lib:format("Error: command ~p not known.", [hd(Args)])};
+ {error, io_lib:format("Error: command ~p not known.", [CmdString])};
{ArgsFormat, ResultFormat} ->
case (catch format_args(Args, ArgsFormat)) of
ArgsFormatted when is_list(ArgsFormatted) ->