diff --git a/examples/darwin-framework-tool/commands/pairing/PairingDelegateBridge.mm b/examples/darwin-framework-tool/commands/pairing/PairingDelegateBridge.mm index 0bd24146b76aba..5aee425f2e3739 100644 --- a/examples/darwin-framework-tool/commands/pairing/PairingDelegateBridge.mm +++ b/examples/darwin-framework-tool/commands/pairing/PairingDelegateBridge.mm @@ -33,6 +33,7 @@ - (void)onStatusUpdate:(MTRPairingStatus)status break; case MTRPairingStatusFailed: ChipLogError(chipTool, "Secure Pairing Failed"); + _commandBridge->SetCommandExitStatus(CHIP_ERROR_INCORRECT_STATE); break; case MTRPairingStatusUnknown: ChipLogError(chipTool, "Uknown Pairing Status");