Skip to content

Commit

Permalink
fix exception propagation
Browse files Browse the repository at this point in the history
  • Loading branch information
ppossanzini committed Jan 9, 2025
1 parent 1a2f2e0 commit e2ee495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Arbitrer.GRPC/RequestsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private async Task<string> ManageGenericArbitrerMessage<T>(RequestMessage reques
}
catch (Exception ex)
{
responseMsg = JsonConvert.SerializeObject(new Messages.ResponseMessage { Exception = ex, Status = Messages.StatusEnum.Exception },
responseMsg = JsonConvert.SerializeObject(new Messages.ResponseMessage { Exception = ex, Status = Messages.StatusEnum.Exception ,Content = Unit.Value },
_options.SerializerSettings);
_logger.LogError(ex, $"Error executing message of type {typeof(T)} from external service");
}
Expand Down
2 changes: 1 addition & 1 deletion Arbitrer.Kafka/RequestsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private async Task ConsumeChannelMessage<T>(string msg)
responseMsg = JsonConvert.SerializeObject(
new KafkaReply()
{
Reply = new Messages.ResponseMessage { Exception = ex, Status = Messages.StatusEnum.Exception },
Reply = new Messages.ResponseMessage { Exception = ex, Status = Messages.StatusEnum.Exception , Content = Unit.Value},
CorrelationId = message.CorrelationId
}
, _options.SerializerSettings);
Expand Down

0 comments on commit e2ee495

Please sign in to comment.