From 019b80ffe833192e3855a79a4c0ca9c418ecdf75 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Mon, 2 Sep 2019 18:19:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5=E5=99=A8=E5=86=85=E9=83=A8?= =?UTF-8?q?=E4=BC=98=E5=85=88=E6=A3=80=E6=9F=A5=20DbContextManager=20?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/HealthChecks/DBHealthCheck.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bootstrap.Admin/HealthChecks/DBHealthCheck.cs b/Bootstrap.Admin/HealthChecks/DBHealthCheck.cs index 4100b717..181d4b2d 100644 --- a/Bootstrap.Admin/HealthChecks/DBHealthCheck.cs +++ b/Bootstrap.Admin/HealthChecks/DBHealthCheck.cs @@ -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)); }