From: eletuchy Date: Wed, 13 Feb 2008 00:48:15 +0000 (+0000) Subject: [erl-thrift] tiny change to exception message for tSocket:connect X-Git-Tag: 0.2.0~997 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=bd03e3e40e4117ffb32fe5d4ed703f0f7c233680;p=common%2Fthrift.git [erl-thrift] tiny change to exception message for tSocket:connect Summary: calls integer_to_list on the port Reviewed By: dreiss Test Plan: connected a client to non-running server. oh noes, exception. Revert Plan: sure git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665475 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/erl/src/transport/tSocket.erl b/lib/erl/src/transport/tSocket.erl index f23cdee9..3af77c22 100644 --- a/lib/erl/src/transport/tSocket.erl +++ b/lib/erl/src/transport/tSocket.erl @@ -77,7 +77,8 @@ effectful_open(This) -> case gen_tcp:connect(Host, Port, Options) of {error, _} -> tException:throw(tTransportException, - [?tTransportException_NOT_OPEN, "Could not connect to " ++ Host ++ ":" ++ Port]); + [?tTransportException_NOT_OPEN, "Could not connect to " ++ Host ++ ":" + ++ integer_to_list(Port)]); {ok, Socket} -> effectful_setHandle(This, Socket) end.