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