mirror of
https://github.com/alterware/alterware-launcher.git
synced 2025-12-04 07:17:50 +00:00
error logging for failed/retry download
This commit is contained in:
12
src/main.rs
12
src/main.rs
@@ -278,13 +278,17 @@ async fn update_dir(
|
||||
)
|
||||
.await
|
||||
{
|
||||
println!(
|
||||
"Failed to download file {}, retry? (Y/n)",
|
||||
file_path.clone().display()
|
||||
);
|
||||
let file_name = file_path.clone().cute_path();
|
||||
println_error!("{err}");
|
||||
println!("Failed to download file {file_name}, retry? (Y/n)");
|
||||
let input = misc::stdin().to_ascii_lowercase();
|
||||
if input == "n" {
|
||||
error!("Download for file {file_name} failed with {err}");
|
||||
panic!("{err}");
|
||||
} else {
|
||||
warn!(
|
||||
"Download for file {file_name} failed with {err} user chose to retry download"
|
||||
);
|
||||
}
|
||||
};
|
||||
download_complete = true;
|
||||
|
||||
Reference in New Issue
Block a user