diff --git a/TASVideos/Pages/Forum/Topics/AddEditPoll.cshtml.cs b/TASVideos/Pages/Forum/Topics/AddEditPoll.cshtml.cs index ec9b9ed39..e7272220e 100644 --- a/TASVideos/Pages/Forum/Topics/AddEditPoll.cshtml.cs +++ b/TASVideos/Pages/Forum/Topics/AddEditPoll.cshtml.cs @@ -62,7 +62,7 @@ public async Task OnPost() if (!Poll.OptionsAreValid) { - ModelState.AddModelError($"{nameof(Poll)}.{nameof(Poll.PollOptions)}", "Invalid poll options"); + ModelState.AddModelError($"{nameof(Poll)}.{nameof(Poll.PollOptions)}", "Enter at least 2 options. Each option must be a string with a maximum length of 250."); return Page(); } diff --git a/TASVideos/Pages/Forum/Topics/Create.cshtml.cs b/TASVideos/Pages/Forum/Topics/Create.cshtml.cs index 8201ca690..98f54dc66 100644 --- a/TASVideos/Pages/Forum/Topics/Create.cshtml.cs +++ b/TASVideos/Pages/Forum/Topics/Create.cshtml.cs @@ -89,7 +89,7 @@ public async Task OnPost() if (!Poll.OptionsAreValid) { - ModelState.AddModelError($"{nameof(Poll.PollOptions)}", "Invalid poll options"); + ModelState.AddModelError($"{nameof(Poll.PollOptions)}", "Enter at least 2 options. Each option must be a string with a maximum length of 250."); return Page(); } }