[ 
https://issues.apache.org/jira/browse/AVRO-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16424081#comment-16424081
 ] 

ASF subversion and git services commented on AVRO-2113:
-------------------------------------------------------

Commit 3b6658dfcfea85e140420de207fb29d583a6df0e in avro's branch 
refs/heads/master from Thiruvalluvan M G
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=3b6658d ]

Merge pull request #305 from thiru-apache/AVRO-2113

AVRO-2113 Fixed error reporting in C++ schema parsing

> Improve unexpected type error message
> -------------------------------------
>
>                 Key: AVRO-2113
>                 URL: https://issues.apache.org/jira/browse/AVRO-2113
>             Project: Avro
>          Issue Type: Improvement
>          Components: c++
>            Reporter: Victor Mota
>            Assignee: Thiruvalluvan M. G.
>            Priority: Minor
>             Fix For: 1.8.3
>
>
> Currently the error message for default type mismatch is not very user 
> friendly:
> https://github.com/apache/avro/blob/17f2d75132021fafeca29edbdcade40df960fdc9/lang/c%2B%2B/impl/Compiler.cc#L158
> ie. "Unexpected type for default value: Expected 3, but found 2". Specifying 
> the field where this is happening and what the types mismatched are in human 
> readable format (ie. string, etc) would benefit the user a lot in debugging.
> Here is an example of a user having issues understanding the error: 
> https://issuetracker.google.com/issues/70351564.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to