From 47bdbeb25da6dafc66f3ef48e9fba1f059b4b931 Mon Sep 17 00:00:00 2001 From: Max G Date: Mon, 4 Feb 2019 21:39:47 -0600 Subject: [PATCH] ReadItem should be ReadInstance in exceptions --- XmlFormat/XmlDataReader.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/XmlFormat/XmlDataReader.cs b/XmlFormat/XmlDataReader.cs index 277d61a..52c1b9b 100644 --- a/XmlFormat/XmlDataReader.cs +++ b/XmlFormat/XmlDataReader.cs @@ -43,11 +43,11 @@ namespace RobloxFiles.XmlFormat { // Process the instance itself if (instNode.Name != "Item") - throw new Exception("XmlDataReader.ReadItem: Provided XmlNode's class should be 'Item'!"); + throw new Exception("XmlDataReader.ReadInstance: Provided XmlNode's name should be 'Item'!"); XmlNode classToken = instNode.Attributes.GetNamedItem("class"); if (classToken == null) - throw new Exception("XmlDataReader.ReadItem: Got an Item without a defined 'class' attribute!"); + throw new Exception("XmlDataReader.ReadInstance: Got an Item without a defined 'class' attribute!"); Instance inst = new Instance(classToken.InnerText); @@ -59,7 +59,7 @@ namespace RobloxFiles.XmlFormat string refId = refToken.InnerText; if (file.Instances.ContainsKey(refId)) - throw new Exception("XmlDataReader.ReadItem: Got an Item with a duplicate 'referent' attribute!"); + throw new Exception("XmlDataReader.ReadInstance: Got an Item with a duplicate 'referent' attribute!"); file.Instances.Add(refId, inst); }