Skip to content

Commit bfbc7e5

Browse files
committed
test: align insertContentTool error title with spec
1 parent 05c5334 commit bfbc7e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/tools/insertContentTool.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export async function insertContentTool(
9191
cline.recordToolError("insert_content")
9292
const formattedError = `Cannot insert content at line ${lineNumber} into a non-existent file. For new files, 'line' must be 0 (to append) or 1 (to insert at the beginning).`
9393
await cline.say("error", formattedError, undefined, undefined, undefined, undefined, {
94-
title: t("tools:errors.invalidLineNumber"),
94+
title: "Invalid Line Number",
9595
})
9696
pushToolResult(formattedError)
9797
return
@@ -131,7 +131,7 @@ export async function insertContentTool(
131131
// For existing files, generate diff and check for changes
132132
diff = formatResponse.createPrettyPatch(relPath, fileContent, updatedContent)
133133
if (!diff) {
134-
pushToolResult(t("tools:noChanges", { path: relPath }))
134+
pushToolResult(t("tools:generic.noChanges", { path: relPath }))
135135
return
136136
}
137137
approvalContent = undefined
@@ -167,7 +167,7 @@ export async function insertContentTool(
167167
if (!isPreventFocusDisruptionEnabled) {
168168
await cline.diffViewProvider.revertChanges()
169169
}
170-
pushToolResult(t("tools:changesRejected"))
170+
pushToolResult(t("tools:generic.changesRejected"))
171171
await cline.diffViewProvider.reset()
172172
return
173173
}

0 commit comments

Comments
 (0)