From: Anthony F. Molinaro Date: Mon, 20 Jun 2011 22:03:40 +0000 (+0000) Subject: THRIFT-1151 - support R13 as well as R14 X-Git-Tag: 0.7.0~59 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=76bd0050ce96f7f7bf243c8a967d2e27bebb1726;p=common%2Fthrift.git THRIFT-1151 - support R13 as well as R14 git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1137801 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/erl/src/thrift_protocol.erl b/lib/erl/src/thrift_protocol.erl index 95b7d1ad..193b07af 100644 --- a/lib/erl/src/thrift_protocol.erl +++ b/lib/erl/src/thrift_protocol.erl @@ -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})