mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
feat: add debug logging for invalid toolAliases specs
Adds console.warn when invalid alias specs are ignored (missing colon, colon at start/end) to help users troubleshoot misconfigured aliases.
This commit is contained in:
parent
700c2531c7
commit
c7881edbd1
1 changed files with 5 additions and 0 deletions
|
|
@ -25,6 +25,11 @@ export function parseToolAliases(toolAliases: string[] | undefined): Map<string,
|
|||
const originalName = aliasSpec.substring(0, colonIndex)
|
||||
const aliasName = aliasSpec.substring(colonIndex + 1)
|
||||
aliasMap.set(originalName, aliasName)
|
||||
} else {
|
||||
// Log invalid alias specs to help users troubleshoot misconfigured aliases
|
||||
console.warn(
|
||||
`[toolAliases] Ignoring invalid alias spec "${aliasSpec}". Expected format: "originalName:aliasName"`,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue