From 18fe8ecfea109d1c48ce6d34ca5728ecf1d97564 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 10 Sep 2013 22:52:10 -0700 Subject: [PATCH] LoadConfigFile will only catch XmlExceptions --- NzbDrone.Core/Configuration/ConfigFileProvider.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core/Configuration/ConfigFileProvider.cs b/NzbDrone.Core/Configuration/ConfigFileProvider.cs index d571bb8b8..15c45ac5a 100644 --- a/NzbDrone.Core/Configuration/ConfigFileProvider.cs +++ b/NzbDrone.Core/Configuration/ConfigFileProvider.cs @@ -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); }