-
Notifications
You must be signed in to change notification settings - Fork 652
Closed
ModerRAS/TelegramSearchBot
#158Labels
good-first-issueGood for newcomersGood for newcomershacktoberfest-acceptedPR is approved for Hacktoberfest even if not mergedPR is approved for Hacktoberfest even if not mergedis:bugup-for-grabsThis issue is open to be worked on by anyoneThis issue is open to be worked on by anyone
Description
The constructor of ArgumentOutOfRangeException that accepts a single string parameter expects a parameter name, not a message. I have spotted at least 2 cases where we are incorrectly passing a message to this parameter. We need to change these to call the constructor that accepts 2 strings and pass the name of the argument as the first parameter (using nameof(<argument>), or in the case of a property, nameof(<PropertyName>)).
Metadata
Metadata
Assignees
Labels
good-first-issueGood for newcomersGood for newcomershacktoberfest-acceptedPR is approved for Hacktoberfest even if not mergedPR is approved for Hacktoberfest even if not mergedis:bugup-for-grabsThis issue is open to be worked on by anyoneThis issue is open to be worked on by anyone