From 571049eeb46a5b659e539865d429545b364c33ca Mon Sep 17 00:00:00 2001 From: Florian Zevedei Date: Fri, 29 Sep 2023 18:34:33 +0200 Subject: [PATCH] Replacing exception text with nameof litteral --- .../MSSQLSerializer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TelegramBotBase.Extensions.Serializer.Database.MSSQL/MSSQLSerializer.cs b/TelegramBotBase.Extensions.Serializer.Database.MSSQL/MSSQLSerializer.cs index a25cbcd..4dd69bb 100644 --- a/TelegramBotBase.Extensions.Serializer.Database.MSSQL/MSSQLSerializer.cs +++ b/TelegramBotBase.Extensions.Serializer.Database.MSSQL/MSSQLSerializer.cs @@ -31,7 +31,7 @@ namespace TelegramBotBase.Extensions.Serializer.Database.MSSQL if (FallbackStateForm != null && !FallbackStateForm.IsSubclassOf(typeof(FormBase))) { - throw new ArgumentException($"{nameof(FallbackStateForm)} is not a subclass of FormBase"); + throw new ArgumentException($"{nameof(FallbackStateForm)} is not a subclass of {nameof(FormBase)}"); } }