From b00ee4dccb6ffe35ec4f4ad4a27498cf686b7f75 Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Thu, 22 Mar 2018 10:15:02 -0400 Subject: [PATCH] Clearer exception --- ICD.Common.Utils/Xml/IcdXmlReader.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ICD.Common.Utils/Xml/IcdXmlReader.cs b/ICD.Common.Utils/Xml/IcdXmlReader.cs index 4d85ad5..adf398b 100644 --- a/ICD.Common.Utils/Xml/IcdXmlReader.cs +++ b/ICD.Common.Utils/Xml/IcdXmlReader.cs @@ -151,7 +151,8 @@ namespace ICD.Common.Utils.Xml } catch (XmlException e) { - throw new IcdXmlException(e); + string message = string.Format("Unable to read element '{0}' content as string", m_Reader.Name); + throw new IcdXmlException(message, e, e.LineNumber, e.LinePosition); } }