diff --git a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs index a20d72aa..1056b61d 100644 --- a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs +++ b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs @@ -110,7 +110,7 @@ private static T ParseXmlAttribute(XElement element, string attributeName, T? T? parsed = ConvertValue(attribute.Value); if (parsed == null) - throw new Exception($"{element.Name} height is not a valid {typeof(T).Name}"); + throw new Exception($"{element.Name} {attribute} is not a valid {typeof(T).Name}"); return (T)parsed; } @@ -127,7 +127,7 @@ private static T ParseXmlAttribute(XElement element, string attributeName, T? T? parsed = ConvertValue(attribute.Value); if (parsed == null) - throw new Exception($"{element.Name} height is not a valid {typeof(T).Name}"); + throw new Exception($"{element.Name} {attribute} is not a valid {typeof(T).Name}"); return (T)parsed; }