Skip to content

Commit

Permalink
Merge pull request #34 from cnblogs/auto-retrive-user-friendly-message
Browse files Browse the repository at this point in the history
feat: auto-set user friendly message
  • Loading branch information
ikesnowy authored Feb 23, 2023
2 parents 51b229a + 7102fd0 commit 6653d54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ protected virtual void ThrowApiException(
Exception? e)
{
var message = response ?? e?.Message;
throw TException.Create(statusCode, $"{method} {url} failed with error: {message}");
throw TException.Create(statusCode, $"{method} {url} failed with error: {message}", message);
}

private void ThrowApiException(HttpMethod method, HttpStatusCode statusCode, string url, string responseString)
Expand Down

0 comments on commit 6653d54

Please sign in to comment.