Skip to content

Commit 4405c93

Browse files
chore: add isError annotation for handled errors
1 parent 543301c commit 4405c93

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/tools/mongodb/metadata/collectionStorageSize.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export class CollectionStorageSizeTool extends MongoDBToolBase {
4242
type: "text",
4343
},
4444
],
45+
isError: true,
4546
};
4647
}
4748

src/tools/mongodb/read/collectionIndexes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export class CollectionIndexesTool extends MongoDBToolBase {
3737
type: "text",
3838
},
3939
],
40+
isError: true,
4041
};
4142
}
4243

src/tools/mongodb/update/renameCollection.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export class RenameCollectionTool extends MongoDBToolBase {
4848
type: "text",
4949
},
5050
],
51+
isError: true,
5152
};
5253
case "NamespaceExists":
5354
return {
@@ -57,6 +58,7 @@ export class RenameCollectionTool extends MongoDBToolBase {
5758
type: "text",
5859
},
5960
],
61+
isError: true,
6062
};
6163
}
6264
}

0 commit comments

Comments
 (0)