Skip to content

Commit

Permalink
Merge pull request #1 from devlead/patch-1
Browse files Browse the repository at this point in the history
ArgumentNullException expects param first
  • Loading branch information
marcogrcr authored Mar 18, 2023
2 parents 1767156 + 1da5856 commit 54f8467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SmsSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public SmsSender(string portName, short countryCode, long localNumber, string te

if (string.IsNullOrWhiteSpace(text))
{
throw new ArgumentNullException("A text must be specified.", "text");
throw new ArgumentNullException("text", "A text must be specified.");
}

// Port creation.
Expand Down Expand Up @@ -240,4 +240,4 @@ private void SetSize(PduSmsMessage pduMessage)
}
}
}
}
}

0 comments on commit 54f8467

Please sign in to comment.