Skip to content

Commit 6831f39

Browse files
Add error logs.
1 parent bde7b06 commit 6831f39

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,10 @@ Status ActionsDelegateImpl::HandleDisableActionWithDuration(uint16_t actionId, u
137137

138138
void emberAfActionsClusterInitCallback(EndpointId endpoint)
139139
{
140-
VerifyOrReturn(endpoint == 1);
141-
VerifyOrDie(emberAfContainsServer(endpoint, Actions::Id));
140+
VerifyOrReturn(endpoint == 1,
141+
ChipLogError(Zcl, "Actions cluster delegate is not implemented for endpoint with id %d.", endpoint));
142+
VerifyOrReturn(emberAfContainsServer(endpoint, Actions::Id) == true,
143+
ChipLogError(Zcl, "Endpoint %d does not support Actions cluster.", endpoint));
142144
VerifyOrReturn(!sActionsDelegateImpl && !sActionsServer);
143145

144146
sActionsDelegateImpl = std::make_unique<Actions::ActionsDelegateImpl>();

0 commit comments

Comments
 (0)