fix exception messages

This commit is contained in:
bluepilledgreat 2024-10-20 19:03:35 +01:00
parent 644b6335dd
commit f7da913fe8

View File

@ -110,7 +110,7 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
T? parsed = ConvertValue<T>(attribute.Value); T? parsed = ConvertValue<T>(attribute.Value);
if (parsed == null) 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; return (T)parsed;
} }
@ -127,7 +127,7 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
T? parsed = ConvertValue<T>(attribute.Value); T? parsed = ConvertValue<T>(attribute.Value);
if (parsed == null) 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; return (T)parsed;
} }