mirror of
https://github.com/Readarr/Readarr
synced 2025-12-29 03:34:35 +01:00
Log invalid config file exceptions
(cherry picked from commit a95317446c452926819ad24f892a00770b1b23fc) Closes #2448
This commit is contained in:
parent
a857e7c6f4
commit
bbdecb343b
1 changed files with 2 additions and 1 deletions
|
|
@ -26,7 +26,6 @@
|
|||
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 @@ private static IConfiguration GetConfiguration(StartupContext context)
|
|||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue