-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OnReadInitialRequest has a useless return value #17623
Comments
bzbarsky-apple
added a commit
to bzbarsky-apple/connectedhomeip
that referenced
this issue
May 21, 2022
Instead of having both a status outparam and an error return, just use a status return. Also fixes some bugs where we were not checking the results of some TLV parsing operations, and not converting some TVL parsing failures to the right status. Fixes project-chip#11724 Fixes project-chip#17623
bzbarsky-apple
added a commit
to bzbarsky-apple/connectedhomeip
that referenced
this issue
May 25, 2022
Instead of having both a status outparam and an error return, just use a status return. Also fixes some bugs where we were not checking the results of some TLV parsing operations, and not converting some TVL parsing failures to the right status. Fixes project-chip#11724 Fixes project-chip#17623
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
OnReadInitialRequest returns a CHIP_ERROR, but the caller ignores it.
Proposed Solution
Fix things so that we either return the InteractionModel::Status the caller cares about or return a CHIP_ERROR that the caller then uses to set the status (and it's on OnReadInitialRequest to make it an error that carries a status).
The text was updated successfully, but these errors were encountered: