mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-12 15:14:35 +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,
|
||||
Err(e) => {
|
||||
println!("Failed to copy file: {}", e);
|
||||
println!("Path: {}", path);
|
||||
println!("New Path: {}", new_path);
|
||||
false
|
||||
}
|
||||
}
|
||||
@@ -86,6 +88,8 @@ pub fn copy_file_with_new_name(path: String, new_path: String, new_name: String)
|
||||
Ok(_) => true,
|
||||
Err(e) => {
|
||||
println!("Failed to copy file: {}", e);
|
||||
println!("Path: {}", path);
|
||||
println!("New Path: {}", new_path);
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user