修改数据库保存异常提示

This commit is contained in:
2023-10-18 10:40:35 +08:00
parent 7465b8b5b9
commit 56295b3c98
2 changed files with 7 additions and 1 deletions
@@ -589,6 +589,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("数据保存异常。");
}
}