Skip to content

Commit 1fe10c2

Browse files
fmenezesCopilot
andauthored
Update src/tools/atlas/read/listClusters.ts
Co-authored-by: Copilot <[email protected]>
1 parent 3ec7255 commit 1fe10c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tools/atlas/read/listClusters.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ ${rows}`,
8484
clusters?: PaginatedClusterDescription20240805,
8585
flexClusters?: PaginatedFlexClusters20241113
8686
): CallToolResult {
87+
// Check if both traditional clusters and flex clusters are absent
8788
if (!clusters?.results?.length && !flexClusters?.results?.length) {
8889
throw new Error("No clusters found.");
8990
}

0 commit comments

Comments
 (0)