File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -112,15 +112,8 @@ export abstract class ToolBase {
112112
113113 // Check read-only mode first
114114 if ( this . config . readOnly && ! [ "read" , "metadata" ] . includes ( this . operationType ) ) {
115- logger . debug (
116- LogId . toolDisabled ,
117- "tool" ,
118- `Prevented registration of ${ this . name } because it has operation type \`${ this . operationType } \` and read-only mode is enabled`
119- ) ;
120- return false ;
121- }
122-
123- if ( this . config . disabledTools . includes ( this . category ) ) {
115+ errorClarification = `read-only mode is enabled, its operation type, \`${ this . operationType } \`,` ;
116+ } else if ( this . config . disabledTools . includes ( this . category ) ) {
124117 errorClarification = `its category, \`${ this . category } \`,` ;
125118 } else if ( this . config . disabledTools . includes ( this . operationType ) ) {
126119 errorClarification = `its operation type, \`${ this . operationType } \`,` ;
You can’t perform that action at this time.
0 commit comments