Skip to content

Commit 1691484

Browse files
bzbarsky-applepull[bot]
authored andcommitted
Better logging when converting unknown NSError to CHIP_ERROR. (#26011)
Otherwise we don't know what error we really had.
1 parent 1873794 commit 1691484

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/darwin/Framework/CHIP/MTRError.mm

+1
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ + (CHIP_ERROR)errorToCHIPErrorCode:(NSError * _Nullable)error
238238
}
239239

240240
if (error.domain != MTRErrorDomain) {
241+
ChipLogError(Controller, "Trying to convert non-Matter error %@ to a Matter error code", error);
241242
return CHIP_ERROR_INTERNAL;
242243
}
243244

0 commit comments

Comments
 (0)