Skip to content

Commit

Permalink
Check Error for CHIP_ERROR_NOT_IMPLEMENTED
Browse files Browse the repository at this point in the history
  • Loading branch information
ratgr committed Feb 25, 2025
1 parent 6f5ea52 commit 319d9aa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,9 @@ CHIP_ERROR CodegenDataModelProvider::AcceptedCommands(const ConcreteClusterPath
CommandHandlerInterfaceRegistry::Instance().GetCommandHandler(path.mEndpointId, path.mClusterId);
if (interface != nullptr)
{
return interface->EnumerateAcceptedCommands(path, builder);
CHIP_ERROR err = interface->EnumerateAcceptedCommands(path, builder);
// if err == CHIP_ERROR_NOT_IMPLEMENTED then continue, else just return whatever err is
VerifyOrReturnError(err == CHIP_ERROR_NOT_IMPLEMENTED, err);
}

VerifyOrReturnError(serverCluster->acceptedCommandList != nullptr, CHIP_NO_ERROR);
Expand Down

0 comments on commit 319d9aa

Please sign in to comment.