Skip to content

Commit

Permalink
[chip-tool] Stop the command on pairing failure (#19267)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple authored and pull[bot] committed Jul 21, 2023
1 parent a1ca3ed commit 3771986
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/chip-tool/commands/pairing/PairingCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 3771986

Please sign in to comment.