summaryrefslogtreecommitdiff
path: root/src/ejabberd_commands.erl
diff options
context:
space:
mode:
authorMickael Remond <mremond@process-one.net>2016-07-31 22:48:24 +0200
committerMickael Remond <mremond@process-one.net>2016-07-31 22:48:24 +0200
commit6ea7153e31a8d36fbb34816b4c87ea3eca1ac8fc (patch)
tree5b6a037bea384dfba268ec9d7077130e1a8e4bc0 /src/ejabberd_commands.erl
parentChange name of result key for offline count to value (diff)
Improve error handling
Diffstat (limited to 'src/ejabberd_commands.erl')
-rw-r--r--src/ejabberd_commands.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ejabberd_commands.erl b/src/ejabberd_commands.erl
index d9497322..a8b3e25a 100644
--- a/src/ejabberd_commands.erl
+++ b/src/ejabberd_commands.erl
@@ -425,7 +425,7 @@ get_command_definition(Name, Version) ->
{V, C}
end)))) of
[{_, Command} | _ ] -> Command;
- _E -> throw(unknown_command)
+ _E -> throw({error, unknown_command})
end.
-spec get_commands_definition(integer()) -> [ejabberd_commands()].