From 4eba08e69281fb79a36e47eadbc9e6efb6fdecd3 Mon Sep 17 00:00:00 2001
From: falcon <9504402@qq.com>
Date: Sat, 8 Oct 2022 16:56:24 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E4=B8=AA=E5=8F=AF?=
=?UTF-8?q?=E8=83=BD=E7=9A=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs b/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs
index 852193c..78e3243 100644
--- a/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs
+++ b/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs
@@ -129,7 +129,7 @@ namespace Falcon.SugarApi.ApiDefinistions
/// 异常处理方法
protected virtual void ThrowApiException(string msg, Exception innException, Action exAction) {
var ex = new ApiException(msg, innException);
- exAction(ex);
+ exAction?.Invoke(ex);
throw ex;
}
}