Skip to content

Commit c075fcc

Browse files
Log what sort of object we have if it's not the right sort of object. (#37573)
Otherwise it's hard to tell what might be going wrong.
1 parent b1c3091 commit c075fcc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/darwin/Framework/CHIP/MTRDevice_XPC.mm

+2-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ - (BOOL)_internalState:(NSDictionary *)dictionary hasValidValuesForKeys:(const N
271271
continue;
272272
}
273273
if (!MTR_SAFE_CAST(value, NSNumber) && !MTR_SAFE_CAST(value, NSDate)) {
274-
MTR_LOG_ERROR("%@ device:internalStateUpdated: handed state with invalid value for \"%@\": %@", self, key, value);
274+
MTR_LOG_ERROR("%@ device:internalStateUpdated: handed state with invalid value of type %@ for \"%@\": %@", self,
275+
NSStringFromClass([value class]), key, value);
275276
return NO;
276277
}
277278
}

0 commit comments

Comments
 (0)