From 76bd0050ce96f7f7bf243c8a967d2e27bebb1726 Mon Sep 17 00:00:00 2001 From: "Anthony F. Molinaro" Date: Mon, 20 Jun 2011 22:03:40 +0000 Subject: [PATCH] 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 --- lib/erl/src/thrift_protocol.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}) -- 2.17.1