mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
fix: enhance error messaging in diff strategy to address potential issues with context lines and version targeting
This commit is contained in:
parent
6c8d7f4951
commit
36b7da07d2
1 changed files with 4 additions and 0 deletions
|
|
@ -230,6 +230,10 @@ Your diff here
|
|||
errorMsg += "\nPossible Issues:\n"
|
||||
errorMsg += "- Too many context lines may reduce search accuracy\n"
|
||||
errorMsg += "- Try to keep only 2-3 lines of context before and after changes\n"
|
||||
} else {
|
||||
errorMsg += "\nPossible Issues:\n"
|
||||
errorMsg += "- The diff may be targeting a different version of the file\n"
|
||||
errorMsg += "- There may be too many changes in a single hunk, try splitting the changes into multiple hunks\n"
|
||||
}
|
||||
|
||||
if (startLine && endLine) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue