Skip to content

Commit

Permalink
fix exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bluepilledgreat committed Oct 20, 2024
1 parent 644b633 commit f7da913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private static T ParseXmlAttribute<T>(XElement element, string attributeName, T?

T? parsed = ConvertValue<T>(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;
}
Expand All @@ -127,7 +127,7 @@ private static T ParseXmlAttribute<T>(XElement element, string attributeName, T?

T? parsed = ConvertValue<T>(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;
}
Expand Down

0 comments on commit f7da913

Please sign in to comment.