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 pull[bot] committed Oct 26, 2023
1 parent d2b19a1 commit c313d3b
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 c313d3b

Please sign in to comment.