Skip to content

Commit a09bfb8

Browse files
Update dotnet/src/webdriver/DevTools/Json/JsonEnumMemberConverter.cs
1 parent fe5645d commit a09bfb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/webdriver/DevTools/Json/JsonEnumMemberConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public JsonEnumMemberConverter()
6565

6666
public override TEnum Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
6767
{
68-
var stringValue = reader.GetString() ?? throw new JsonException("Cannot read an enum string from \"null\"");
68+
var stringValue = reader.GetString() ?? throw new JsonException("Could not read an enum string from \"null\"");
6969

7070
if (_stringToEnum.TryGetValue(stringValue, out var enumValue))
7171
{

0 commit comments

Comments
 (0)