[thrift] erlang: dialyzer bug: bad usage of ++ operator on a non-list
authoreletuchy <dev-null@apache.org>
Wed, 27 Feb 2008 19:55:15 +0000 (19:55 +0000)
committereletuchy <dev-null@apache.org>
Wed, 27 Feb 2008 19:55:15 +0000 (19:55 +0000)
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

lib/erl/src/transport/tSocket.erl

index 5f16ded..842fba3 100644 (file)
@@ -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]),