Skip to content

Commit afa777e

Browse files
committed
fix: show user-friendly error message for XML parsing failures
- Keep detailed XML structure instructions only for LLM via pushToolResult - Show simple error message to user via cline.say - Aligns with established error handling pattern in codebase
1 parent 55be84c commit afa777e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/tools/multiApplyDiffTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Expected structure:
161161
Original error: ${errorMessage}`
162162
cline.consecutiveMistakeCount++
163163
cline.recordToolError("apply_diff")
164-
await cline.say("diff_error", detailedError)
164+
await cline.say("diff_error", `Failed to parse apply_diff XML: ${errorMessage}`)
165165
pushToolResult(detailedError)
166166
return
167167
}

0 commit comments

Comments
 (0)