File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ export abstract class MongoDBToolBase extends ToolBase {
6868 } ) ;
6969 if ( outcome ?. errorHandled ) {
7070 return outcome . result ;
71- } else {
72- return super . handleError ( error , args ) ;
7371 }
72+
73+ return super . handleError ( error , args ) ;
7474 }
7575 case ErrorCodes . ForbiddenCollscan :
7676 return {
Original file line number Diff line number Diff line change @@ -30,13 +30,13 @@ export abstract class TransportRunnerBase {
3030
3131 protected constructor ( {
3232 userConfig,
33- createConnectionManager,
34- connectionErrorHandler,
33+ createConnectionManager = createMCPConnectionManager ,
34+ connectionErrorHandler = defaultConnectionErrorHandler ,
3535 additionalLoggers = [ ] ,
3636 } : TransportRunnerConfig ) {
3737 this . userConfig = userConfig ;
38- this . createConnectionManager = createConnectionManager ?? createMCPConnectionManager ;
39- this . connectionErrorHandler = connectionErrorHandler ?? defaultConnectionErrorHandler ;
38+ this . createConnectionManager = createConnectionManager ;
39+ this . connectionErrorHandler = connectionErrorHandler ;
4040 const loggers : LoggerBase [ ] = [ ...additionalLoggers ] ;
4141 if ( this . userConfig . loggers . includes ( "stderr" ) ) {
4242 loggers . push ( new ConsoleLogger ( ) ) ;
You can’t perform that action at this time.
0 commit comments