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
1 changed files with 1 additions and 1 deletions

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',