mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +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:
parent
4caf2c8674
commit
3b2af5dfc5
@ -111,7 +111,7 @@ process_iq_get(From, _To, #iq{payload = SubEl} = IQ_Rec) ->
|
|||||||
LServer,
|
LServer,
|
||||||
exmpp_xml:get_child_elements(SubEl)) of
|
exmpp_xml:get_child_elements(SubEl)) of
|
||||||
{'EXIT', _Reason} ->
|
{'EXIT', _Reason} ->
|
||||||
{error, 'internal-server-error'};
|
exmpp_iq:error(IQ_Rec, 'internal-server-error');
|
||||||
Res ->
|
Res ->
|
||||||
exmpp_iq:result(IQ_Rec, #xmlel{ns = ?NS_PRIVATE,
|
exmpp_iq:result(IQ_Rec, #xmlel{ns = ?NS_PRIVATE,
|
||||||
name = 'query',
|
name = 'query',
|
||||||
|
Loading…
Reference in New Issue
Block a user