[
https://issues.apache.org/jira/browse/AVRO-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thiruvalluvan M. G. updated AVRO-2113:
--------------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
Pull request merged
> 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)