Skip to content

Commit

Permalink
Fail darwin-framework-tool pairing commands once the SDK says it's fa…
Browse files Browse the repository at this point in the history
…iled. (#20639) (#20717)

That's what chip-tool does.  Without this, darwin-framework-tool ends
up sitting there until the (2-minute) command timeout.

Fixes #20589

Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
woody-apple and bzbarsky-apple authored Jul 14, 2022
1 parent 0390a8d commit 68f5e39
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 68f5e39

Please sign in to comment.