summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-10-24 12:14:49 -0500
committerGitHub <[email protected]>2025-10-24 12:14:49 -0500
commit707ed723815899121a53111d08cf7e179374d47a (patch)
treea55ad445be9537cd49cb83821eb10ef016785f20
parent21880e199da755b6e3c8c3d439dfe34d51d77aaa (diff)
downloadopencode-707ed723815899121a53111d08cf7e179374d47a.tar.gz
opencode-707ed723815899121a53111d08cf7e179374d47a.zip
adjust edit tool multiple matches error wording (#3418)
-rw-r--r--packages/opencode/src/tool/edit.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/opencode/src/tool/edit.ts b/packages/opencode/src/tool/edit.ts
index c761801a6..c35f89697 100644
--- a/packages/opencode/src/tool/edit.ts
+++ b/packages/opencode/src/tool/edit.ts
@@ -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.",
)
}