google / eDistantObject

eDistantObject (eDO) - Remote invocation library for iOS
Apache License 2.0
174 stars 36 forks source link

Add type encoding checks for NSArray elements before encoding. #257

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

Add type encoding checks for NSArray elements before encoding.

With strict mode available in EarlGrey, there will be more users always sending NSArray by-value. One caveats from that is, NSArray doesn't always conform to NSCoding. The failure will happen if any element of the array does not conform to NSCoding. Right now, the encoding error doesn't have useful information, but just saying " does not conform to encodeWithCoder:".

This change polishes the error message in this case, when failure happens, users will know: