[ https://issues.apache.org/jira/browse/THRIFT-1151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052205#comment-13052205 ]
Anthony Molinaro commented on THRIFT-1151: ------------------------------------------ Try applying the patch I just uploaded then just run make. Essentially the line which starts with 'error(struct_unmatched, ...' needs to be 'erlang:error(struct_unmatched, ...'. In R14B onward they dropped the need for the leading erlang: (which specifies this function is in the erlang module). R14A should be avoided as it's an alpha release. The fact that Debian Squeeze uses it is unfortunate. If at all possible you should be running R13B04 or R14B03. Let me know if the patch works for you. > Produce more informative runtime error in case of schema and data mismatch > during serialization > ----------------------------------------------------------------------------------------------- > > Key: THRIFT-1151 > URL: https://issues.apache.org/jira/browse/THRIFT-1151 > Project: Thrift > Issue Type: Improvement > Components: Erlang - Library > Reporter: Anatoly Kanivetsky > Assignee: Anthony Molinaro > Fix For: 0.7 > > Attachments: diff.txt, thrift-1151.patch > > > This patch adds generation of informative error during serialization of > struct, which is unmatched to it's struct_info. > Instead of generating {error, enival} in gen_tcp during sending invalid > binary, it produces accurate error with some useful information. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira