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

Fix internal-server-error error response (EJAB-1414).

Ejabberd was trying to send a tuple instead of the full error stanza.
This commit is contained in:
Pablo Polvorin 2011-03-09 10:30:54 -03:00
parent 4caf2c8674
commit 3b2af5dfc5

View File

@ -111,7 +111,7 @@ process_iq_get(From, _To, #iq{payload = SubEl} = IQ_Rec) ->
LServer,
exmpp_xml:get_child_elements(SubEl)) of
{'EXIT', _Reason} ->
{error, 'internal-server-error'};
exmpp_iq:error(IQ_Rec, 'internal-server-error');
Res ->
exmpp_iq:result(IQ_Rec, #xmlel{ns = ?NS_PRIVATE,
name = 'query',