mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 10:39:29 +02:00
Fix HTTP process return formatting
This commit is contained in:
parent
6ea7153e31
commit
c5c394e929
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ process([Call], #request{method = 'GET', q = Data, ip = IP} = Req) ->
|
||||||
catch
|
catch
|
||||||
%% TODO We need to refactor to remove redundant error return formatting
|
%% TODO We need to refactor to remove redundant error return formatting
|
||||||
throw:{error, unknown_command} ->
|
throw:{error, unknown_command} ->
|
||||||
{404, 40, <<"Command not found.">>};
|
json_format({404, 40, <<"Command not found.">>});
|
||||||
_:_Error ->
|
_:_Error ->
|
||||||
|
|
||||||
?DEBUG("Bad Request: ~p ~p", [_Error, erlang:get_stacktrace()]),
|
?DEBUG("Bad Request: ~p ~p", [_Error, erlang:get_stacktrace()]),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue