tablesmit / protobuf-net

Automatically exported from code.google.com/p/protobuf-net
Other
0 stars 1 forks source link

Wrong type causes wire-type error. #419

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have a property, which is uint at the source. I accidentally had it as type 
string in my parser object. This caused a wire-type exception.

I'm not sure if it's even possible - but it would be very handy to see if there 
is any trouble converting values. This took me almost 8 hours to figure out, 
seeing how I was trying to fix the source, because of the exception message.

Maybe the exception text could be changed to also include potential wrong types 
in the destination objects.

Original issue reported on code.google.com by pts...@gmail.com on 2 Dec 2013 at 1:02