mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix(prompts): title-case tool error headers and align en i18n keys to match tests
This commit is contained in:
parent
b5a93fe11d
commit
3c60c6e290
2 changed files with 4 additions and 4 deletions
|
|
@ -16,8 +16,8 @@ export const formatResponse = {
|
|||
|
||||
toolError: (error?: string, toolName?: string) => {
|
||||
const title = toolName
|
||||
? t("tools:errors.toolCallError", { toolName, defaultValue: `Tool call error: ${toolName}` })
|
||||
: t("tools:errors.toolExecutionError", { defaultValue: "Tool execution error" })
|
||||
? t("tools:errors.toolCallError", { toolName, defaultValue: `Tool Call Error: ${toolName}` })
|
||||
: t("tools:errors.toolExecutionError", { defaultValue: "Tool Execution Error" })
|
||||
return `${title}\n<error>\n${error}\n</error>`
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -29,8 +29,8 @@
|
|||
"changesRejected": "Changes were rejected by the user."
|
||||
},
|
||||
"errors": {
|
||||
"toolCallError": "Tool call error: {{toolName}}",
|
||||
"toolExecutionError": "Tool execution error",
|
||||
"toolCallError": "Tool Call Error: {{toolName}}",
|
||||
"toolExecutionError": "Tool Execution Error",
|
||||
"fileNotFound": "File Not Found",
|
||||
"parseError": "Parse error",
|
||||
"commandTimeout": "Command timeout",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue