From f1f041b118fb7fc86581c5803ffd130c1e92cefd Mon Sep 17 00:00:00 2001 From: James Griffiths Date: Fri, 17 Jan 2025 15:51:31 +0000 Subject: [PATCH] log inner exception --- GenderPayGap.WebUI/Controllers/HealthCheckController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GenderPayGap.WebUI/Controllers/HealthCheckController.cs b/GenderPayGap.WebUI/Controllers/HealthCheckController.cs index e55502094..af96be0e7 100644 --- a/GenderPayGap.WebUI/Controllers/HealthCheckController.cs +++ b/GenderPayGap.WebUI/Controllers/HealthCheckController.cs @@ -64,7 +64,7 @@ private void CheckFileConnection() } catch (Exception e) { - throw new Exception($"Could not read or write a file: {e.Message}"); + throw new Exception($"Could not read or write a file: {e.Message}", e); } }