From bbdecb343b8423a0c9dec7267ccc305f514a2117 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 7 May 2023 16:51:00 +0300 Subject: [PATCH] Log invalid config file exceptions (cherry picked from commit a95317446c452926819ad24f892a00770b1b23fc) Closes #2448 --- src/NzbDrone.Host/Bootstrap.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Host/Bootstrap.cs b/src/NzbDrone.Host/Bootstrap.cs index 332e27687..8ad9982c3 100644 --- a/src/NzbDrone.Host/Bootstrap.cs +++ b/src/NzbDrone.Host/Bootstrap.cs @@ -26,7 +26,6 @@ using NzbDrone.Core.Configuration; using NzbDrone.Core.Datastore.Extensions; using NzbDrone.Core.Lifecycle; using NzbDrone.Core.Messaging.Events; -using NzbDrone.Host; using PostgresOptions = NzbDrone.Core.Datastore.PostgresOptions; namespace NzbDrone.Host @@ -240,6 +239,8 @@ namespace NzbDrone.Host } catch (InvalidDataException ex) { + Logger.Error(ex, ex.Message); + throw new InvalidConfigFileException($"{configPath} is corrupt or invalid. Please delete the config file and Readarr will recreate it.", ex); } }