Skip to content

Commit

Permalink
hope to catch the exception
Browse files Browse the repository at this point in the history
  • Loading branch information
xieofxie committed Jun 24, 2020
1 parent f138771 commit eeab334
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ private async Task ConnectWebSocketAsync(IBot bot, HttpRequest httpRequest, Http
}
catch (Exception ex)
{
httpRequest.HttpContext.Response.StatusCode = (int)HttpStatusCode.InternalServerError;
await httpRequest.HttpContext.Response.WriteAsync($"Unable to create transport server. Error: {ex.ToString()}").ConfigureAwait(false);
// httpRequest.HttpContext.Response.StatusCode = (int)HttpStatusCode.InternalServerError;
// await httpRequest.HttpContext.Response.WriteAsync($"Unable to create transport server. Error: {ex.ToString()}").ConfigureAwait(false);

throw ex;
}
Expand Down

0 comments on commit eeab334

Please sign in to comment.