File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
mcp/src/main/java/io/modelcontextprotocol/client/transport Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1212import org .reactivestreams .FlowAdapters ;
1313import org .reactivestreams .Subscription ;
1414
15- import io .modelcontextprotocol .spec .McpError ;
15+ import io .modelcontextprotocol .spec .McpTransportException ;
1616import reactor .core .publisher .BaseSubscriber ;
1717import reactor .core .publisher .FluxSink ;
1818
@@ -168,8 +168,7 @@ else if (line.startsWith("event:")) {
168168 }
169169 else {
170170 // If the response is not successful, emit an error
171- // TODO: This should be a McpTransportError
172- this .sink .error (new McpError (
171+ this .sink .error (new McpTransportException (
173172 "Invalid SSE response. Status code: " + this .responseInfo .statusCode () + " Line: " + line ));
174173
175174 }
You can’t perform that action at this time.
0 commit comments