Skip to content

Commit f7b4ec4

Browse files
committed
improves error msgs
1 parent 80b353f commit f7b4ec4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/atlas/connect/connectCluster.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const ConnectClusterArgs = {
2424
clusterName: AtlasArgs.clusterName().describe("Atlas cluster name"),
2525
connectionType: AtlasArgs.connectionType()
2626
.optional()
27-
.describe("Desired connection type (standard, private, or privateEndpoint) to an Atlas cluster"),
27+
.describe("Type of connection (standard, private, or privateEndpoint) to an Atlas cluster"),
2828
};
2929

3030
export class ConnectClusterTool extends AtlasToolBase {
@@ -82,7 +82,7 @@ export class ConnectClusterTool extends AtlasToolBase {
8282
}
8383
const connectionString = getConnectionString(cluster.connectionStrings, connectionType);
8484
if (connectionString === undefined) {
85-
throw new Error(`Connection string for type "${connectionType}" not available`);
85+
throw new Error(`Connection string for connection type "${connectionType}" not available`);
8686
}
8787

8888
const username = `mcpUser${Math.floor(Math.random() * 100000)}`;

0 commit comments

Comments
 (0)