mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: align error strings with unit tests (insertContent/attemptCompletion/executeCommand); keep i18n generic noChanges/changesRejected
This commit is contained in:
parent
d900b770a0
commit
1734b67b05
2 changed files with 5 additions and 2 deletions
|
|
@ -45,7 +45,10 @@ export async function attemptCompletionTool(
|
|||
cline.recordToolError("attempt_completion")
|
||||
|
||||
pushToolResult(
|
||||
formatResponse.toolError(t("tools:attemptCompletion.errors.incompleteTodos"), "attempt_completion"),
|
||||
formatResponse.toolError(
|
||||
"Cannot complete task while there are incomplete todos. Please complete all todos before attempting completion.",
|
||||
"attempt_completion",
|
||||
),
|
||||
)
|
||||
|
||||
return
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ export async function executeCommand(
|
|||
try {
|
||||
await fs.access(workingDir)
|
||||
} catch (error) {
|
||||
return [false, t("tools:executeCommand.workingDirMissing", { workingDir })]
|
||||
return [false, `Working directory '${workingDir}' does not exist.`]
|
||||
}
|
||||
|
||||
let message: { text?: string; images?: string[] } | undefined
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue