Skip to content

Commit 857e238

Browse files
committed
Improve message
1 parent 47ebeb5 commit 857e238

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotnet/src/webdriver/Response.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ public string ToJson()
221221
/// </summary>
222222
/// <exception cref="WebDriverException">If <see cref="Value"/> is <see langword="null"/>.</exception>
223223
[MemberNotNull(nameof(Value))]
224-
internal Response EnsureValueIsNotNull(string commandName)
224+
internal Response EnsureValueIsNotNull()
225225
{
226226
if (Value is null)
227227
{
228-
throw new WebDriverException($"{commandName} command returned a successful result, but contained no data");
228+
throw new WebDriverException("Remote end doesn't have $.Value property");
229229
}
230230

231231
return this;

0 commit comments

Comments
 (0)