25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

Fix HTTP process return formatting

This commit is contained in:
Mickael Remond 2016-08-01 08:58:49 +02:00
parent 6ea7153e31
commit c5c394e929
No known key found for this signature in database
GPG Key ID: E6F6045D79965AA3

View File

@ -253,7 +253,7 @@ process([Call], #request{method = 'GET', q = Data, ip = IP} = Req) ->
catch
%% TODO We need to refactor to remove redundant error return formatting
throw:{error, unknown_command} ->
{404, 40, <<"Command not found.">>};
json_format({404, 40, <<"Command not found.">>});
_:_Error ->
?DEBUG("Bad Request: ~p ~p", [_Error, erlang:get_stacktrace()]),