🔊 Poll argument out of range message

This commit is contained in:
2025-08-06 00:37:53 +08:00
parent 2bbef9b9d1
commit 1a93cdad46

View File

@@ -95,7 +95,7 @@ public class PollService(AppDatabase db, ICacheService cache)
answer[questionId].ValueKind != JsonValueKind.False: answer[questionId].ValueKind != JsonValueKind.False:
throw new Exception($"Answer for question {question.Title} expected to be a boolean"); throw new Exception($"Answer for question {question.Title} expected to be a boolean");
default: default:
throw new ArgumentOutOfRangeException(); throw new ArgumentOutOfRangeException("Question type is not supported: " + question.Type);
} }
} }
} }