erlang: Make the test server compatible with the Python test client
authorDavid Reiss <dreiss@apache.org>
Mon, 30 Aug 2010 22:05:16 +0000 (22:05 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 30 Aug 2010 22:05:16 +0000 (22:05 +0000)
The Python test client expects a specific value in some responses.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990970 13f79535-47bb-0310-9956-ffa450edef68

test/erl/src/test_server.erl

index 889f1b4..134c7cb 100644 (file)
@@ -150,7 +150,7 @@ handle_function(testException, {String}) when is_binary(String) ->
     case String of
         <<"Xception">> ->
             throw(#xception{errorCode = 1001,
-                            message = <<"This is an Xception">>});
+                            message = String});
         _ ->
             ok
     end;