From: eletuchy Date: Wed, 27 Feb 2008 19:55:15 +0000 (+0000) Subject: [thrift] erlang: dialyzer bug: bad usage of ++ operator on a non-list X-Git-Tag: 0.2.0~944 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=38d199b87930d6abed82c5ad408bdf8691b398a1;p=common%2Fthrift.git [thrift] erlang: dialyzer bug: bad usage of ++ operator on a non-list Reviewed By: cpiro Test Plan: make dialyzer -j Revert Plan: sure git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665528 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/erl/src/transport/tSocket.erl b/lib/erl/src/transport/tSocket.erl index 5f16ded3..842fba38 100644 --- a/lib/erl/src/transport/tSocket.erl +++ b/lib/erl/src/transport/tSocket.erl @@ -112,7 +112,10 @@ read(This, Sz) -> {ok, []} -> Host = oop:get(This, host), Port = oop:get(This, port), - tException:throw(tTransportException, [?tTransportException_UNKNOWN, "TSocket: Could not read " ++ Sz ++ "bytes from " ++ Host ++ ":" ++ Port]); + tException:throw(tTransportException, + [?tTransportException_UNKNOWN, + "TSocket: Could not read " ++ integer_to_list(Sz) ++ + "bytes from " ++ Host ++ ":" ++ integer_to_list(Port)]); {ok, Data} -> %% DEBUG ?INFO("tSocket: read ~p", [Data]),