From a38b28f4df9ee8e2ea472ba04cd47b8abb0fa621 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) --- 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 37aa8cbc0..65bed4473 100644 --- a/src/NzbDrone.Host/Bootstrap.cs +++ b/src/NzbDrone.Host/Bootstrap.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Data.SQLite; -using System.Diagnostics; using System.IO; using System.Reflection; using System.Security.Cryptography; @@ -231,6 +230,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 Radarr will recreate it.", ex); } }