diff --git a/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm b/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm index 7294df0c8a5ad9..5a70f15a1c0b33 100644 --- a/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm +++ b/examples/darwin-framework-tool/commands/common/CHIPCommandBridge.mm @@ -41,7 +41,8 @@ ReturnErrorOnFailure(MaybeSetUpStack()); SetIdentity(mCommissionerName.HasValue() ? mCommissionerName.Value() : kIdentityAlpha); ReturnLogErrorOnFailure(RunCommand()); - ReturnLogErrorOnFailure(StartWaiting(GetWaitDuration())); + + auto err = StartWaiting(GetWaitDuration()); bool deferCleanup = (IsInteractive() && DeferInteractiveCleanup()); @@ -54,7 +55,7 @@ } MaybeTearDownStack(); - return CHIP_NO_ERROR; + return err; } CHIP_ERROR CHIPCommandBridge::GetPAACertsFromFolder(NSArray * __autoreleasing * paaCertsResult)