mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
adjust edit tool multiple matches error wording
This commit is contained in:
parent
343471b98d
commit
78c8fd4f89
1 changed files with 1 additions and 1 deletions
|
|
@ -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.",
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue