fix: match expected error message text in mcp_client and mcp_registry
This commit is contained in:
@@ -575,7 +575,7 @@ class MCPClient:
|
||||
except Exception as e:
|
||||
raise RuntimeError(
|
||||
f"[Server: {self.config.name}] [Transport: {self.config.transport}] "
|
||||
f"Tool '{tool_name}' failed: {e}"
|
||||
f"Failed to call tool via HTTP: Tool '{tool_name}' failed: {e}"
|
||||
) from e
|
||||
|
||||
def _reconnect(self) -> None:
|
||||
|
||||
@@ -254,7 +254,7 @@ class MCPRegistry:
|
||||
if manifest is None:
|
||||
raise MCPInstallError(
|
||||
server=name,
|
||||
why="Server not found in the cached registry index.",
|
||||
why=f"Server '{name}' not found in registry index.",
|
||||
fix="Run: hive mcp update — then try again.",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user