From 1c57df8528f5fcc9a51168e60e6a1e293a50988e Mon Sep 17 00:00:00 2001 From: Tamara Rivera Date: Wed, 30 Sep 2026 16:48:02 -0700 Subject: [PATCH] Add the exception message to the reason of why the custom check failed --- .../InternalCustomChecks/InternalCustomCheckManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceControl/CustomChecks/InternalCustomChecks/InternalCustomCheckManager.cs b/src/ServiceControl/CustomChecks/InternalCustomChecks/InternalCustomCheckManager.cs index 803712c068..0592c73d4c 100644 --- a/src/ServiceControl/CustomChecks/InternalCustomChecks/InternalCustomCheckManager.cs +++ b/src/ServiceControl/CustomChecks/InternalCustomChecks/InternalCustomCheckManager.cs @@ -49,7 +49,7 @@ async Task Run(CancellationToken cancellationToken) catch (Exception ex) { var customCheckType = check.GetType(); - var reason = $"`{customCheckType}` implementation failed to run."; + var reason = $"`{customCheckType}` implementation failed to run. {ex.Message}"; result = CheckResult.Failed(reason); logger.LogError(ex, "`{CustomCheckType}` implementation failed to run", customCheckType); }