We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5d5d13 commit 38ede42Copy full SHA for 38ede42
src/app/CommandHandler.h
@@ -327,7 +327,12 @@ class CommandHandler
327
{
328
return CHIP_NO_ERROR;
329
}
330
- ReturnErrorOnFailure(RollbackResponse());
+ // The error value of RollbackResponse is not important if it fails, we prioritize
331
+ // conveying the error generated by addResponseFunction to the caller.
332
+ if (RollbackResponse() != CHIP_NO_ERROR)
333
+ {
334
+ return err;
335
+ }
336
// If we failed to add a command due to lack of space in the
337
// packet, we will make another attempt to add the response using
338
// an additional InvokeResponseMessage.
0 commit comments