Lightweight coding agent that runs in your terminal
Rust
tweak "failed to find expected lines" message in apply_patch (#3374)
Jeremy Roseee5ecae7c091
diff --git a/codex-rs/apply-patch/src/lib.rs b/codex-rs/apply-patch/src/lib.rsindex 18d3bd4d32..1fdd6928e9 100644--- a/codex-rs/apply-patch/src/lib.rs+++ b/codex-rs/apply-patch/src/lib.rs@@ -726,9 +726,9 @@ fn compute_replacements(line_index = start_idx + pattern.len();} else {return Err(ApplyPatchError::ComputeReplacements(format!(- "Failed to find expected lines {:?} in {}",- chunk.old_lines,- path.display()+ "Failed to find expected lines in {}:\n{}",+ path.display(),+ chunk.old_lines.join("\n"),)));}}