Skip to content

Commit 2e1cb8b

Browse files
committed
Replace System.err.println with error for cleaner error handling
1 parent 853f384 commit 2e1cb8b

File tree

1 file changed

+1
-1
lines changed
  • samples/kotlin-mcp-server/src/main/kotlin/io/modelcontextprotocol/sample/server

1 file changed

+1
-1
lines changed

samples/kotlin-mcp-server/src/main/kotlin/io/modelcontextprotocol/sample/server/main.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fun main(args: Array<String>): Unit = runBlocking {
1818
"--sse-server-ktor" -> runSseMcpServerUsingKtorPlugin(port)
1919
"--sse-server" -> runSseMcpServerWithPlainConfiguration(port)
2020
else -> {
21-
System.err.println("Unknown command: $command")
21+
error("Unknown command: $command")
2222
}
2323
}
2424
}

0 commit comments

Comments
 (0)