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)

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

Fixes #20589
  • Loading branch information
bzbarsky-apple authored and web-flow committed Jul 14, 2022
1 parent 0390a8d commit 6f3a130
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 6f3a130

Please sign in to comment.