File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,12 @@ export abstract class AtlasLocalToolBase extends ToolBase {
16
16
const client = this . session . atlasLocalClient ;
17
17
18
18
// If the client is not found, throw an error
19
- // This should never happen, because the tool should have been disabled.
20
- // verifyAllowed in the base class returns false if the client is not found
19
+ // This should never happen:
20
+ // - atlas-local tools are only added after the client is set
21
+ // this means that if we were unable to get the client, the tool will not be registered
22
+ // - in case the tool was registered by accident
23
+ // verifyAllowed in the base class would still return false preventing the tool from being registered,
24
+ // preventing the tool from being executed
21
25
if ( ! client ) {
22
26
throw new Error ( "Atlas Local client not found, tool should have been disabled." ) ;
23
27
}
You can’t perform that action at this time.
0 commit comments