You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Douglas Creager (JIRA)" <ji...@apache.org> on 2011/02/07 18:31:57 UTC

[jira] Updated: (AVRO-463) C implementation should return json parse errors

     [ https://issues.apache.org/jira/browse/AVRO-463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Douglas Creager updated AVRO-463:
---------------------------------

    Attachment: 0001-Error-messages.patch

This patch adds a new avro_strerror() function that returns a string describing *all* of the errors that Avro can produce, not just the JSON parse errors.

> C implementation should return json parse errors
> ------------------------------------------------
>
>                 Key: AVRO-463
>                 URL: https://issues.apache.org/jira/browse/AVRO-463
>             Project: Avro
>          Issue Type: Improvement
>          Components: c
>    Affects Versions: 1.3.0
>            Reporter: Jeff Hodges
>            Assignee: Douglas Creager
>            Priority: Minor
>         Attachments: 0001-Error-messages.patch
>
>
> Currently, the C implementation does not return the JSON parse errors from the underlying JSON library and instead simply returns EINVAL.
> This makes debugging difficult. For instance, I had to hack the source code to figure out why AVRO-462 was happening. We could use the very nice text field on current jansson library's json_error_t struct.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira