Skip to content

Commit

Permalink
Fix a resource exhausted return code
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Aug 8, 2023
1 parent 4652a92 commit 0db3cd2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ bool emberAfGroupKeyManagementClusterKeySetWriteCallback(
err = provider->SetKeySet(fabric->GetFabricIndex(), compressed_fabric_id, keyset);
if (CHIP_ERROR_INVALID_LIST_LENGTH == err)
{
chip::app::CommandHandler::LogStatus(commandPath, Status::InvalidCommand, "Not enough space left to add a new KeySet");
LogErrorOnFailure(commandObj->AddStatus(commandPath, Status::InvalidCommand));
chip::app::CommandHandler::LogStatus(commandPath, Status::ResourceExhausted, "Not enough space left to add a new KeySet");
LogErrorOnFailure(commandObj->AddStatus(commandPath, Status::ResourceExhausted));
return true;
}

Expand Down

0 comments on commit 0db3cd2

Please sign in to comment.