[
https://issues.apache.org/jira/browse/PROTON-2966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18115326#comment-18115326
]
ASF subversion and git services commented on PROTON-2966:
---------------------------------------------------------
Commit c1c48bcb3c559644969ba48c4cec130894224165 in qpid-proton's branch
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=c1c48bcb3 ]
PROTON-2966: Improve the error reporting from pn_decoder_decode
> pn_decoder_decode does not report why a decode failed
> -----------------------------------------------------
>
> Key: PROTON-2966
> URL: https://issues.apache.org/jira/browse/PROTON-2966
> Project: Qpid Proton
> Issue Type: Improvement
> Components: proton-c
> Reporter: Andrew Stitcher
> Assignee: Andrew Stitcher
> Priority: Minor
> Fix For: proton-c-0.41.0
>
>
> pn_decoder_decode() returned a bare error code for most failures.
> Change that so that we make each failure carry a message with more
> information about the failure: naming the typecode or the field at fault, or
> the compound whose declared size is too small to hold its own header.
> The decoder kept its own pn_error_t, but nothing ever reads it, sod rop the
> decoder's private error object and report failures on the pn_data_t being
> decoded into, where pn_data_error() already lets the caller retrieve them.
> This is a diagnostics change only: the error codes returned are unchanged.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]