From dd5a3715c67d8ba70bef97fc0d0d01b06f824fae Mon Sep 17 00:00:00 2001 From: Dswfort Date: Tue, 1 Mar 2022 16:01:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9C=E7=A8=8B=E8=AF=B7=E6=B1=82=E4=B8=8D?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=8B=A6=E6=88=AA=E5=99=A8=E6=97=B6=E6=8A=9B?= =?UTF-8?q?=E5=87=BA=E7=9A=84=E5=BC=82=E5=B8=B8=E4=B8=A2=E5=A4=B1=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Furion/RemoteRequest/Internal/HttpRequestPartMethods.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Furion/RemoteRequest/Internal/HttpRequestPartMethods.cs b/framework/Furion/RemoteRequest/Internal/HttpRequestPartMethods.cs index b60290905d..ab49f0171e 100644 --- a/framework/Furion/RemoteRequest/Internal/HttpRequestPartMethods.cs +++ b/framework/Furion/RemoteRequest/Internal/HttpRequestPartMethods.cs @@ -572,7 +572,7 @@ public sealed partial class HttpRequestPart App.PrintToMiniProfiler(MiniProfilerCategory, "Failed", $"[StatusCode: {response?.StatusCode}] {errors}", true); // 抛出异常 - if (ExceptionInterceptors == null || ExceptionInterceptors.Count == 0) throw new HttpRequestException(errors); + if (ExceptionInterceptors == null || ExceptionInterceptors.Count == 0) throw new HttpRequestException(errors, null, response?.StatusCode); // 调用异常拦截器 else ExceptionInterceptors.ForEach(u => { -- Gitee