From fe1949f842781c41886634cfecea658887218588 Mon Sep 17 00:00:00 2001 From: Sting Chang Date: Fri, 25 Oct 2024 02:25:07 +0800 Subject: [PATCH] return error --- examples/chef/common/chef-laundry-washer-mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chef/common/chef-laundry-washer-mode.cpp b/examples/chef/common/chef-laundry-washer-mode.cpp index 2500a562167adb..af17367ac12359 100644 --- a/examples/chef/common/chef-laundry-washer-mode.cpp +++ b/examples/chef/common/chef-laundry-washer-mode.cpp @@ -100,7 +100,7 @@ chip::Protocols::InteractionModel::Status chefLaundryWasherModeWriteCallback(chi uint8_t * buffer) { VerifyOrDie(endpointId == 1); // this cluster is only enabled for endpoint 1 - VerifyOrDie(gLaundryWasherModeInstance != nullptr); + VerifyOrReturnError(gLaundryWasherModeInstance != nullptr, chip::Protocols::InteractionModel::Status::Failure); chip::Protocols::InteractionModel::Status ret; chip::AttributeId attributeId = attributeMetadata->attributeId;