Skip to content

Commit 1734b67

Browse files
committed
fix: align error strings with unit tests (insertContent/attemptCompletion/executeCommand); keep i18n generic noChanges/changesRejected
1 parent d900b77 commit 1734b67

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/core/tools/attemptCompletionTool.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ export async function attemptCompletionTool(
4545
cline.recordToolError("attempt_completion")
4646

4747
pushToolResult(
48-
formatResponse.toolError(t("tools:attemptCompletion.errors.incompleteTodos"), "attempt_completion"),
48+
formatResponse.toolError(
49+
"Cannot complete task while there are incomplete todos. Please complete all todos before attempting completion.",
50+
"attempt_completion",
51+
),
4952
)
5053

5154
return

src/core/tools/executeCommandTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export async function executeCommand(
175175
try {
176176
await fs.access(workingDir)
177177
} catch (error) {
178-
return [false, t("tools:executeCommand.workingDirMissing", { workingDir })]
178+
return [false, `Working directory '${workingDir}' does not exist.`]
179179
}
180180

181181
let message: { text?: string; images?: string[] } | undefined

0 commit comments

Comments
 (0)