mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 01:47:06 +08:00
Synchronization code
This commit is contained in:
parent
4a2f11d954
commit
b203a0a199
@ -214,6 +214,16 @@ namespace SqlSugar
|
||||
|
||||
return sql;
|
||||
}
|
||||
|
||||
public override Action<SqlSugarException> ErrorEvent => it =>
|
||||
{
|
||||
if (base.ErrorEvent != null)
|
||||
{
|
||||
base.ErrorEvent(it);
|
||||
}
|
||||
if (it.Message != null && it.Message.Contains("Detail redacted as it may contain sensitive data."))
|
||||
{
|
||||
Check.ExceptionEasy(it.Message, $"错误:可能是字段太小超出,详细错误:{it.Message} ");
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -215,5 +215,17 @@ namespace SqlSugar
|
||||
return sql;
|
||||
}
|
||||
|
||||
public override Action<SqlSugarException> ErrorEvent => it =>
|
||||
{
|
||||
if (base.ErrorEvent != null)
|
||||
{
|
||||
base.ErrorEvent(it);
|
||||
}
|
||||
if (it.Message != null && it.Message.Contains("Detail redacted as it may contain sensitive data."))
|
||||
{
|
||||
Check.ExceptionEasy(it.Message, $"错误:可能是字段太小超出,详细错误:{it.Message} ");
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user