Skip to content

Commit d900b77

Browse files
committed
test: align insertContentTool error title with spec
1 parent 9b0cdcd commit d900b77

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
@@ -165,7 +165,7 @@ export async function insertContentTool(
165165
if (!isPreventFocusDisruptionEnabled) {
166166
await cline.diffViewProvider.revertChanges()
167167
}
168-
pushToolResult(t("tools:changesRejected"))
168+
pushToolResult(t("tools:generic.changesRejected"))
169169
await cline.diffViewProvider.reset()
170170
return
171171
}

0 commit comments

Comments
 (0)