adjust edit tool multiple matches error wording (#3418)

This commit is contained in:
Aiden Cline
2025-10-24 12:14:49 -05:00
committed by GitHub
parent 21880e199d
commit 707ed72381

View File

@@ -621,6 +621,6 @@ export function replace(content: string, oldString: string, newString: string, r
throw new Error("oldString not found in content")
}
throw new Error(
"oldString found multiple times and requires more code context to uniquely identify the intended match",
"Found multiple matches for oldString. Include more surrounding code lines in oldString to uniquely identify which occurrence to replace.",
)
}