[ https://issues.apache.org/jira/browse/THRIFT-1151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Anthony Molinaro resolved THRIFT-1151. -------------------------------------- Resolution: Fixed Fix Version/s: 0.7 Committed with a slight change, instead of exit/1, I use error/2. I think this is closer to how other failures work, for instance providing the wrong type for x results in a bad argument error exception. Thanks for the path Anatoly. > 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 > > > 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