refactor: 数据库健康检查器内部优先检查 DbContextManager 错误
This commit is contained in:
parent
81936ee7f5
commit
019b80ffe8
|
@ -99,7 +99,7 @@ namespace Bootstrap.Admin.HealthChecks
|
|||
|
||||
if (error != null || DbContextManager.Exception != null)
|
||||
{
|
||||
data.Add("Exception", (error ?? DbContextManager.Exception).Message);
|
||||
data.Add("Exception", (DbContextManager.Exception ?? error).Message);
|
||||
return Task.FromResult(HealthCheckResult.Unhealthy("Error", error ?? DbContextManager.Exception, data));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue