fix: enhance error messaging in diff strategy to address potential issues with context lines and version targeting

This commit is contained in:
Daniel Riccio
2025-01-15 12:55:44 -05:00
parent 6c8d7f4951
commit 36b7da07d2

View File

@@ -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) {