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
|
.await
|
||||||
{
|
{
|
||||||
println!(
|
let file_name = file_path.clone().cute_path();
|
||||||
"Failed to download file {}, retry? (Y/n)",
|
println_error!("{err}");
|
||||||
file_path.clone().display()
|
println!("Failed to download file {file_name}, retry? (Y/n)");
|
||||||
);
|
|
||||||
let input = misc::stdin().to_ascii_lowercase();
|
let input = misc::stdin().to_ascii_lowercase();
|
||||||
if input == "n" {
|
if input == "n" {
|
||||||
|
error!("Download for file {file_name} failed with {err}");
|
||||||
panic!("{err}");
|
panic!("{err}");
|
||||||
|
} else {
|
||||||
|
warn!(
|
||||||
|
"Download for file {file_name} failed with {err} user chose to retry download"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
download_complete = true;
|
download_complete = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user