From 3771986de80984cfbdbae24a7bf280c4b5504193 Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Tue, 7 Jun 2022 15:54:21 +0200 Subject: [PATCH] [chip-tool] Stop the command on pairing failure (#19267) --- examples/chip-tool/commands/pairing/PairingCommand.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/chip-tool/commands/pairing/PairingCommand.cpp b/examples/chip-tool/commands/pairing/PairingCommand.cpp index 910940df8a2b06..1e092c51dcabd7 100644 --- a/examples/chip-tool/commands/pairing/PairingCommand.cpp +++ b/examples/chip-tool/commands/pairing/PairingCommand.cpp @@ -147,6 +147,7 @@ void PairingCommand::OnStatusUpdate(DevicePairingDelegate::Status status) break; case DevicePairingDelegate::Status::SecurePairingFailed: ChipLogError(chipTool, "Secure Pairing Failed"); + SetCommandExitStatus(CHIP_ERROR_INCORRECT_STATE); break; } }