fix: improve error message for updating tool settings

This commit is contained in:
Daniel Riccio 2025-06-16 11:40:57 -05:00
parent a3c39cb428
commit 880361ef94

View file

@ -1588,7 +1588,7 @@ export class McpHub {
const addToolToDisabledList = !isEnabled
await this.updateServerToolList(serverName, source, toolName, "disabledTools", addToolToDisabledList)
} catch (error) {
this.showErrorMessage(`Failed to update disabledForPromptTool settings for tool ${toolName}`, error)
this.showErrorMessage(`Failed to update settings for tool ${toolName}`, error)
throw error // Re-throw to ensure the error is properly handled
}
}