Skip to content

Commit 9612966

Browse files
committed
use reror clarification
1 parent 17ab204 commit 9612966

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/tools/tool.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff 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}\`,`;

0 commit comments

Comments
 (0)