数据库保存异常提示

Uat_Study
hang 2023-10-18 10:41:20 +08:00
parent 4023a59097
commit bca8f2ddb9
1 changed files with 6 additions and 0 deletions

View File

@ -558,6 +558,12 @@ namespace IRaCIS.Core.Infra.EFCore
throw new DBSaveFailedException("SQL 事务失败,请检查环境。");
}
catch (Exception ex)
{
_logger.LogError(ex.InnerException is null ? ex.Message : ex.InnerException?.Message);
throw new DBSaveFailedException("数据保存异常。");
}
}