Skip to content

Commit 5763561

Browse files
bzbarsky-applepull[bot]
authored andcommitted
Fix confusing error message. (#26157)
We were logging a message about "stop pairing" when the real error was that we could not get the device being commissioned.
1 parent c25f35c commit 5763561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/darwin/Framework/CHIP/MTRDeviceController.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ - (MTRBaseDevice *)deviceBeingCommissionedWithNodeID:(NSNumber *)nodeID error:(N
548548
chip::CommissioneeDeviceProxy * deviceProxy;
549549

550550
auto errorCode = self->_cppCommissioner->GetDeviceBeingCommissioned(nodeID.unsignedLongLongValue, &deviceProxy);
551-
VerifyOrReturnValue(![MTRDeviceController checkForError:errorCode logMsg:kErrorStopPairing error:error], nil);
551+
VerifyOrReturnValue(![MTRDeviceController checkForError:errorCode logMsg:kErrorGetCommissionee error:error], nil);
552552

553553
return [[MTRBaseDevice alloc] initWithPASEDevice:deviceProxy controller:self];
554554
};

0 commit comments

Comments
 (0)