Skip to content

Commit

Permalink
Merge pull request #15 from leancodepl/publisher/deserialization-exce…
Browse files Browse the repository at this point in the history
…ption

Fix topic deserialization exception
  • Loading branch information
Dragemil authored Sep 5, 2023
2 parents b0bb681 + 411208c commit cd19852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publisher/src/LeanPipe/LeanPipeSubscriber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private async Task ExecuteAsync(SubscriptionEnvelope envelope, OperationType typ
{
await NotifyResultAsync(envelope.Id, SubscriptionStatus.Malformed, type);
throw new InvalidOperationException(
$"Cannot deserialize topic {envelope.Topic} of type {envelope.TopicType}.",
$"Cannot deserialize topic {envelope.Topic.RootElement.GetRawText()} of type {envelope.TopicType}.",
e
);
}
Expand Down

0 comments on commit cd19852

Please sign in to comment.