diff --git a/src/darwin/Framework/CHIP/MTRError.mm b/src/darwin/Framework/CHIP/MTRError.mm index 4f907145ce5dcf..48c290c53dcfd6 100644 --- a/src/darwin/Framework/CHIP/MTRError.mm +++ b/src/darwin/Framework/CHIP/MTRError.mm @@ -238,6 +238,7 @@ + (CHIP_ERROR)errorToCHIPErrorCode:(NSError * _Nullable)error } if (error.domain != MTRErrorDomain) { + ChipLogError(Controller, "Trying to convert non-Matter error %@ to a Matter error code", error); return CHIP_ERROR_INTERNAL; }