Fix HTTP process return formatting
This commit is contained in:
parent
6ea7153e31
commit
c5c394e929
|
@ -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…
Reference in New Issue