v3.2.666-preview20220615

This commit is contained in:
2881099
2022-06-15 10:41:39 +08:00
parent c7335492eb
commit 26115cfc93
6 changed files with 23 additions and 20 deletions

View File

@ -160,8 +160,8 @@ namespace FreeSql.Sqlite
{
if (obj.Value == null)
{
_pool.SetUnavailable(new Exception(CoreStrings.S_ConnectionStringError), obj.LastGetTimeCopy);
throw new Exception(CoreStrings.S_ConnectionStringError_Check(this.Name));
_pool.SetUnavailable(new Exception(CoreStrings.S_ConnectionStringError_CheckProject), obj.LastGetTimeCopy);
throw new Exception(CoreStrings.S_ConnectionStringError_CheckProjectConnection(this.Name));
}
if (obj.Value.State != ConnectionState.Open || DateTime.Now.Subtract(obj.LastReturnTime).TotalSeconds > 60 && obj.Value.Ping() == false)