From f7da913fe8184b39960dbff0219661c381bcecea Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Sun, 20 Oct 2024 19:03:35 +0100 Subject: [PATCH] fix exception messages --- Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs index a20d72a..1056b61 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} 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 @@ namespace Bloxstrap.UI.Elements.Bootstrapper 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; }