Skip to content

Commit debc6f9

Browse files
committed
chore: Remove unused error code and messages
1 parent 3d69362 commit debc6f9

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/common/errors.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export enum ErrorCodes {
44
ForbiddenCollscan = 1_000_002,
55
ForbiddenWriteOperation = 1_000_003,
66
AtlasSearchNotSupported = 1_000_004,
7-
AtlasSearchNotAvailable = 1_000_005,
87
}
98

109
export class MongoDBError<ErrorCode extends ErrorCodes = ErrorCodes> extends Error {

src/tools/mongodb/mongodbTool.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,16 +100,6 @@ export abstract class MongoDBToolBase extends ToolBase {
100100
isError: true,
101101
};
102102
}
103-
case ErrorCodes.AtlasSearchNotAvailable:
104-
return {
105-
content: [
106-
{
107-
text: `The connected MongoDB deployment does support vector search indexes but they are not ready yet. Try again later.`,
108-
type: "text",
109-
},
110-
],
111-
isError: true,
112-
};
113103
}
114104
}
115105

0 commit comments

Comments
 (0)