Skip to content

Commit 2bf2c30

Browse files
Copilotnquinquenel
andcommitted
Improve error message clarity in StdioServerTransportProvider
Co-authored-by: nquinquenel <[email protected]>
1 parent 8d9c2a6 commit 2bf2c30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/sonarsource/sonarqube/mcp/transport/StdioServerTransportProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void setSessionFactory(McpServerSession.Factory sessionFactory) {
122122
public Mono<Void> notifyClients(String method, Object params) {
123123
if (this.session == null) {
124124
return Mono.error(McpError.builder(McpSchema.ErrorCodes.INTERNAL_ERROR)
125-
.message("No session to close")
125+
.message("No active session to notify clients")
126126
.build());
127127
}
128128
return this.session.sendNotification(method, params)

0 commit comments

Comments
 (0)