THRIFT-1151 - support R13 as well as R14
authorAnthony F. Molinaro <molinaro@apache.org>
Mon, 20 Jun 2011 22:03:40 +0000 (22:03 +0000)
committerAnthony F. Molinaro <molinaro@apache.org>
Mon, 20 Jun 2011 22:03:40 +0000 (22:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1137801 13f79535-47bb-0310-9956-ffa450edef68

lib/erl/src/thrift_protocol.erl

index 95b7d1a..193b07a 100644 (file)
@@ -332,7 +332,7 @@ write(Proto, {{struct, {Module, StructureName}}, Data})
 write(_, {{struct, {Module, StructureName}}, Data})
   when is_atom(Module),
        is_atom(StructureName) ->
-    error(struct_unmatched, {{provided, element(1, Data)},
+    erlang:error(struct_unmatched, {{provided, element(1, Data)},
                              {expected, StructureName}});
 
 write(Proto0, {{list, Type}, Data})