Skip to content

Commit c96a357

Browse files
committed
minor adjustment
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
1 parent 5a6be18 commit c96a357

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mcp/src/main/java/io/modelcontextprotocol/client/transport/ResponseSubscribers.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import org.reactivestreams.FlowAdapters;
1313
import org.reactivestreams.Subscription;
1414

15-
import io.modelcontextprotocol.spec.McpError;
15+
import io.modelcontextprotocol.spec.McpTransportException;
1616
import reactor.core.publisher.BaseSubscriber;
1717
import 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
}

0 commit comments

Comments
 (0)