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

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()]),