Skip to content

Commit 6eded52

Browse files
Better logging when converting unknown NSError to CHIP_ERROR. (project-chip#26011)
Otherwise we don't know what error we really had.
1 parent 115eb6d commit 6eded52

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)