[erl-thrift] tiny change to exception message for tSocket:connect
authoreletuchy <dev-null@apache.org>
Wed, 13 Feb 2008 00:48:15 +0000 (00:48 +0000)
committereletuchy <dev-null@apache.org>
Wed, 13 Feb 2008 00:48:15 +0000 (00:48 +0000)
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

lib/erl/src/transport/tSocket.erl

index f23cdee..3af77c2 100644 (file)
@@ -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.