[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 f23cdee..3af77c2 100644
--- a/lib/erl/src/transport/tSocket.erl
+++ b/lib/erl/src/transport/tSocket.erl
@@ -77,7 +77,8 @@
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.