diff --git a/src/main.rs b/src/main.rs index cf1c524..f45b3bc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,7 +68,7 @@ fn rename_files(directory: &str, base: &str) -> Result { let dir = target_path.parent().with_context(|| { format!("Failed to get parent: {:#?}", target_path) })?; - create_dir_all(&dir).with_context(|| { + create_dir_all(dir).with_context(|| { format!("Failed to create directory: {:#?}", dir) })?; }