From 7ebfaf7539776e41ac47b2ef5b3699d6704a6e24 Mon Sep 17 00:00:00 2001 From: Piotr Karczmarz Date: Wed, 29 Jan 2025 14:26:46 +0100 Subject: [PATCH] Added JSON context to configuration serialization error. --- src/Cody.Core/Infrastructure/ConfigurationService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Cody.Core/Infrastructure/ConfigurationService.cs b/src/Cody.Core/Infrastructure/ConfigurationService.cs index f4bc810..764fa96 100644 --- a/src/Cody.Core/Infrastructure/ConfigurationService.cs +++ b/src/Cody.Core/Infrastructure/ConfigurationService.cs @@ -99,6 +99,7 @@ internal Dictionary GetCustomConfiguration() } catch (Exception ex) { + ex.Data.Add("json", customConfiguration); _logger.Error("Deserializing custom configuration failed.", ex); }