Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 911dcc2

Browse files
Fix failing test.
1 parent a99b6c2 commit 911dcc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcpdotnet/Utils/Json/JsonRpcMessageConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public override void Write(Utf8JsonWriter writer, IJsonRpcMessage value, JsonSer
8484
JsonSerializer.Serialize(writer, response, options.GetTypeInfo<JsonRpcResponse>());
8585
break;
8686
case JsonRpcError error:
87-
JsonSerializer.Serialize(writer, error, options.GetTypeInfo<JsonRpcResponse>());
87+
JsonSerializer.Serialize(writer, error, options.GetTypeInfo<JsonRpcError>());
8888
break;
8989
default:
9090
throw new JsonException($"Unknown JSON-RPC message type: {value.GetType()}");

0 commit comments

Comments
 (0)