Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include manifest or class in missing serializer failure if possible #3701

Conversation

ismaelhamed
Copy link
Member

@ismaelhamed ismaelhamed commented Jan 23, 2019

Got one of this exceptions early today when switching to a very old branch. Figured out we were missing something #26225

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -183,7 +183,7 @@ public object Deserialize(byte[] bytes, int serializerId, Type type)
{
if (!_serializersById.TryGetValue(serializerId, out var serializer))
throw new SerializationException(
$"Cannot find serializer with id [{serializerId}]. The most probable reason" +
$"Cannot find serializer with id [{serializerId}] (class [{type?.Name}]). The most probable reason" +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is a significant usability improvement. I love it.

@Aaronontheweb Aaronontheweb added this to the 1.3.12 milestone Jan 25, 2019
@ismaelhamed ismaelhamed force-pushed the extra-details-in-serializer-not-found-failure branch from 4869db9 to 68e6e28 Compare January 25, 2019 19:30
@ismaelhamed ismaelhamed force-pushed the extra-details-in-serializer-not-found-failure branch from 68e6e28 to b5c9300 Compare January 28, 2019 17:02
@Aaronontheweb Aaronontheweb merged commit e31288a into akkadotnet:dev Jan 30, 2019
@Aaronontheweb
Copy link
Member

thanks @ismaelhamed !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants