mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 11:48:26 -07:00
Log invalid config file exceptions
(cherry picked from commit a95317446c452926819ad24f892a00770b1b23fc) Closes #3618
This commit is contained in:
parent
96f5231eb9
commit
50328861fa
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue