Andrew Stitcher created PROTON-2966:
---------------------------------------
Summary: 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
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]