1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-27 18:28:19 +00:00

LoadConfigFile will only catch XmlExceptions

This commit is contained in:
Mark McDowall 2013-09-10 22:52:10 -07:00
parent 4025d6ddee
commit 18fe8ecfea

View file

@ -2,6 +2,7 @@ using System;
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 @@ namespace NzbDrone.Core.Configuration
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);
}