mirror of
https://github.com/Radarr/Radarr
synced 2025-12-14 20:33:44 +01:00
LoadConfigFile will only catch XmlExceptions
This commit is contained in:
parent
4025d6ddee
commit
18fe8ecfea
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Xml;
|
||||
using System.Xml.Linq;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Common.Cache;
|
||||
|
|
@ -229,7 +230,7 @@ private XDocument LoadConfigFile()
|
|||
return XDocument.Load(_configFile);
|
||||
}
|
||||
|
||||
catch (Exception ex)
|
||||
catch (XmlException ex)
|
||||
{
|
||||
throw new InvalidConfigFileException("config.xml is invalid, please see the wiki for steps to resolve this issue.", ex);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue