Skip to content

Commit

Permalink
Update response SetBody usage, passing exception message (#6544)
Browse files Browse the repository at this point in the history
  • Loading branch information
sw-joelmut authored Nov 11, 2022
1 parent 3ea5cdf commit 746c02f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public override async Task<StreamingResponse> ProcessRequestAsync(ReceiveRequest
#pragma warning restore CA1031 // Do not catch general exception types
{
response.StatusCode = (int)HttpStatusCode.InternalServerError;
response.SetBody(ex.ToString());
response.SetBody(ex.Message);
_logger.LogError(ex.ToString());
}

Expand Down

0 comments on commit 746c02f

Please sign in to comment.