From 2a605c9b0a155e9d93c71d813372a19fc6ac4329 Mon Sep 17 00:00:00 2001 From: shripad621git <79364691+shripad621git@users.noreply.github.com> Date: Thu, 29 Aug 2024 19:49:07 +0530 Subject: [PATCH] Update src/app/CommandHandlerImpl.h Co-authored-by: Terence Hampson --- src/app/CommandHandlerImpl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/CommandHandlerImpl.h b/src/app/CommandHandlerImpl.h index 00f61486d3e3a0..29bf3d523f2b6e 100644 --- a/src/app/CommandHandlerImpl.h +++ b/src/app/CommandHandlerImpl.h @@ -294,9 +294,9 @@ class CommandHandlerImpl : public CommandHandler { return CHIP_NO_ERROR; } - // Here the err from previous step is returned intentionally if RollBackResonse fails due to - // running out of packet buffers i.e due to CHIP_ERROR_NO_MEMORY in AllocateBuffer() and - // 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. if (RollbackResponse() != CHIP_NO_ERROR) { return err;