Provide more helpful message on init error

This commit is contained in:
Agus Zubiaga
2025-09-03 15:15:03 -03:00
parent bbd0774ae5
commit 78975d75f5

View File

@@ -324,7 +324,9 @@ async function availableSlashCommands(query: Query): Promise<AvailableCommand[]>
) {
throw RequestError.authRequired();
}
throw new Error("can't load supported slash commands");
throw new Error(
"Failed to intialize Claude Code.\n\nThis may be caused by incorrect MCP server configuration, try disabling them.",
);
}),
]);