Skip to content

Commit cddd586

Browse files
committed
Improve exception
1 parent 6460e9c commit cddd586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/BiDi/Communication/Json/Internal/JsonExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal static class JsonExtensions
2828
Utf8JsonReader readerClone = reader;
2929

3030
if (readerClone.TokenType != JsonTokenType.StartObject)
31-
throw new JsonException();
31+
throw new JsonException("Cannot determine the discriminator of json non-object token type.");
3232

3333
string? discriminator = null;
3434

0 commit comments

Comments
 (0)