Update MCPConnection.ts

This commit is contained in:
Patrick Erichsen 2025-05-12 09:42:27 -07:00
parent b8ca4cb6ee
commit 5e184e25ff

View file

@ -277,9 +277,9 @@ class MCPConnection {
const msg = error.message.toLowerCase();
if (msg.includes("spawn") && msg.includes("enoent")) {
const command = msg.split(" ")[1];
errorMessage += `: command "${command}" not found. To use this MCP server, install the ${command} CLI.`;
errorMessage += `Error: command "${command}" not found. To use this MCP server, install the ${command} CLI.`;
} else {
errorMessage += ": " + error.message;
errorMessage += "Error: " + error.message;
}
}