Skip to content

Commit 9e6be7a

Browse files
committed
Show actual error
Signed-off-by: Ed Snible <snible@us.ibm.com>
1 parent 91d9c23 commit 9e6be7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • a2a/weather_service/src/weather_service

a2a/weather_service/src/weather_service/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async def execute(self, context: RequestContext, event_queue: EventQueue):
123123
logger.info(f'Successfully connected to MCP server. Available tools: {[tool.name for tool in tools]}')
124124
except Exception as tool_error:
125125
logger.error(f'Failed to connect to MCP server: {tool_error}')
126-
await event_emitter.emit_event("Error: Cannot connect to MCP weather service at {os.getenv('MCP_URL', 'http://localhost:8000/sse')}. Please ensure the weather MCP server is running. Error: {tool_error}", failed=True)
126+
await event_emitter.emit_event(f"Error: Cannot connect to MCP weather service at {os.getenv('MCP_URL', 'http://localhost:8000/sse')}. Please ensure the weather MCP server is running. Error: {tool_error}", failed=True)
127127
return
128128

129129
graph = await get_graph(mcpclient)

0 commit comments

Comments
 (0)