修复一个可能的bug

This commit is contained in:
falcon 2022-10-08 16:56:24 +08:00
parent 6d2023adfe
commit 4eba08e692

View File

@ -129,7 +129,7 @@ namespace Falcon.SugarApi.ApiDefinistions
/// <param name="exAction">异常处理方法</param>
protected virtual void ThrowApiException(string msg, Exception innException, Action<ApiException> exAction) {
var ex = new ApiException(msg, innException);
exAction(ex);
exAction?.Invoke(ex);
throw ex;
}
}