mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2026-02-05 17:56:53 +01:00
Log paths on copy error
This commit is contained in:
@@ -60,6 +60,8 @@ pub fn copy_file(path: String, new_path: String) -> bool {
|
|||||||
Ok(_) => true,
|
Ok(_) => true,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
println!("Failed to copy file: {}", e);
|
println!("Failed to copy file: {}", e);
|
||||||
|
println!("Path: {}", path);
|
||||||
|
println!("New Path: {}", new_path);
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -86,6 +88,8 @@ pub fn copy_file_with_new_name(path: String, new_path: String, new_name: String)
|
|||||||
Ok(_) => true,
|
Ok(_) => true,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
println!("Failed to copy file: {}", e);
|
println!("Failed to copy file: {}", e);
|
||||||
|
println!("Path: {}", path);
|
||||||
|
println!("New Path: {}", new_path);
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user