- 优化 使用 Sqlite 的项目当未选择 x86/x64 时的友好错误提示

This commit is contained in:
28810 2019-12-18 21:29:21 +08:00
parent a357ee4975
commit 954a948837

View File

@ -138,8 +138,8 @@ namespace FreeSql.Sqlite
{
if (obj.Value == null)
{
if (_pool.SetUnavailable(new Exception("连接字符串错误")) == true)
throw new Exception($"【{this.Name}】连接字符串错误,请检查。");
if (_pool.SetUnavailable(new Exception("连接字符串错误,或者检查项目属性 > 生成 > 目标平台x86 | x64")) == true)
throw new Exception($"【{this.Name}】连接字符串错误,请检查。或者检查项目属性 > 生成 > 目标平台x86 | x64");
return;
}