Skip to content

Commit 3714ad6

Browse files
committed
Null or empty in exception message
1 parent 2b60c9f commit 3714ad6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotnet/src/webdriver/CookieJar.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void DeleteCookieNamed(string name)
7979
{
8080
if (string.IsNullOrWhiteSpace(name))
8181
{
82-
throw new ArgumentException("Cookie name cannot be empty", nameof(name));
82+
throw new ArgumentException("Cookie name cannot be null or empty", nameof(name));
8383
}
8484

8585
Dictionary<string, object> parameters = new() { { "name", name } };
@@ -120,7 +120,7 @@ public void DeleteAllCookies()
120120
{
121121
if (string.IsNullOrWhiteSpace(name))
122122
{
123-
throw new ArgumentException("Cookie name cannot be empty", nameof(name));
123+
throw new ArgumentException("Cookie name cannot be null or empty", nameof(name));
124124
}
125125

126126
try

0 commit comments

Comments
 (0)