mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
fix exception messages
This commit is contained in:
parent
644b6335dd
commit
f7da913fe8
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user