From bc1b9b0ffe981c6661d6815f9f8eaaf39734bb78 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 25 Feb 2020 18:38:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=81=A5=E5=BA=B7=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E6=8D=AE=E5=BA=93=E9=A9=B1=E5=8A=A8?= =?UTF-8?q?=E6=9C=AA=E5=BC=95=E7=94=A8=E6=97=B6=E8=A7=A3=E5=86=B3=E5=8A=9E?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.Admin/HealthChecks/DBHealthCheck.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/admin/Bootstrap.Admin/HealthChecks/DBHealthCheck.cs b/src/admin/Bootstrap.Admin/HealthChecks/DBHealthCheck.cs index 6c80ff85..61c442a6 100644 --- a/src/admin/Bootstrap.Admin/HealthChecks/DBHealthCheck.cs +++ b/src/admin/Bootstrap.Admin/HealthChecks/DBHealthCheck.cs @@ -102,6 +102,8 @@ namespace Bootstrap.Admin.HealthChecks { data.Add("Exception", error.Message); + if (error.Message.Contains("Could not load", StringComparison.OrdinalIgnoreCase)) data.Add("解决办法", "Nuget 引用相对应 dll"); + // UNDONE: Json 序列化循环引用导致异常 NET 5.0 修复此问题 // 目前使用 new Exception() 临时解决 return Task.FromResult(HealthCheckResult.Unhealthy("Error", new Exception(error.Message), data));