We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea62667 commit 28c95ceCopy full SHA for 28c95ce
src/app/CommandHandlerImpl.h
@@ -294,9 +294,8 @@ class CommandHandlerImpl : public CommandHandler
294
{
295
return CHIP_NO_ERROR;
296
}
297
- // Here the err from previous step is returned intentionally if RollBackResonse fails due to
298
- // running out of packet buffers i.e due to CHIP_ERROR_NO_MEMORY in AllocateBuffer() and
299
- // fails to set the mRollBackBackupValid.
+ // The error value of RollbackResponse is not important if it fails, we prioritize
+ // conveying the error generated by addResponseFunction to the caller.
300
if (RollbackResponse() != CHIP_NO_ERROR)
301
302
return err;
0 commit comments