Sfoglia il codice sorgente

fix: dialyzer & bad func spec

DDDHuang 4 anni fa
parent
commit
b9b5e376a6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      apps/emqx_gateway/src/emqx_gateway_http.erl

+ 1 - 1
apps/emqx_gateway/src/emqx_gateway_http.erl

@@ -305,7 +305,7 @@ reason2resp(R) ->
             return_http_error(400, Msg)
     end.
 
--spec return_http_error(integer(), any()) -> {integer(), binary()}.
+-spec return_http_error(integer(), any()) -> {integer(), atom(), binary()}.
 return_http_error(Code, Msg) ->
     {Code, codestr(Code), emqx_gateway_utils:stringfy(Msg)}.