Skip to content

Commit 7102fd0

Browse files
committed
feat: auto-set user friendly message
1 parent 51b229a commit 7102fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cnblogs.Architecture.Ddd.Cqrs.ServiceAgent/ServiceAgentBase.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ protected virtual void ThrowApiException(
384384
Exception? e)
385385
{
386386
var message = response ?? e?.Message;
387-
throw TException.Create(statusCode, $"{method} {url} failed with error: {message}");
387+
throw TException.Create(statusCode, $"{method} {url} failed with error: {message}", message);
388388
}
389389

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

0 commit comments

Comments
 (0)