chore: fix converted message output

This commit is contained in:
Jesús Pérex 2025-05-23 16:38:40 +01:00
parent 8326aad265
commit b2170200fe
2 changed files with 1 additions and 2 deletions

View File

@ -127,7 +127,6 @@ fn process_directory(source_dir: &Path, dest_dir: &Path) -> Result<(), String> {
let entries = fs::read_dir(source_dir) let entries = fs::read_dir(source_dir)
.map_err(|e| format!("Error reading source directory: {}", e))?; .map_err(|e| format!("Error reading source directory: {}", e))?;
for entry in entries.flatten() { for entry in entries.flatten() {
let path = entry.path(); let path = entry.path();
@ -161,7 +160,7 @@ fn process_directory(source_dir: &Path, dest_dir: &Path) -> Result<(), String> {
if needs_conversion(&path, &pdf_path) { if needs_conversion(&path, &pdf_path) {
match convert_file(&path, &pdf_path.parent().unwrap_or(dest_dir)) { match convert_file(&path, &pdf_path.parent().unwrap_or(dest_dir)) {
Ok(_) => println!("Converted: {:?}", relative_path), Ok(_) => println!("Converted: {} -> {}", relative_path.display(), pdf_path.display()),
Err(e) => eprintln!("Error: {} - {}", relative_path.display(), e), Err(e) => eprintln!("Error: {} - {}", relative_path.display(), e),
} }
} }