From 50328861fa661fa64ab2f0f8db1715f39d85ef5f 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 #3618 --- src/NzbDrone.Host/Bootstrap.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Host/Bootstrap.cs b/src/NzbDrone.Host/Bootstrap.cs index 7d289054f..b3f9a4f82 100644 --- a/src/NzbDrone.Host/Bootstrap.cs +++ b/src/NzbDrone.Host/Bootstrap.cs @@ -23,8 +23,6 @@ using NzbDrone.Common.Instrumentation; using NzbDrone.Common.Instrumentation.Extensions; using NzbDrone.Core.Configuration; using NzbDrone.Core.Datastore.Extensions; - -using NzbDrone.Host; using PostgresOptions = NzbDrone.Core.Datastore.PostgresOptions; namespace NzbDrone.Host @@ -223,6 +221,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 Lidarr will recreate it.", ex); } }