Output notice when retrying
This commit is contained in:
@@ -33,7 +33,6 @@ mod catalogs {
|
||||
}
|
||||
|
||||
// TODO: use clap for proper CLI
|
||||
// TODO: clippy
|
||||
// TODO: replace unwraps with descriptive expects
|
||||
// TODO: retry some things if sensible
|
||||
|
||||
@@ -186,6 +185,9 @@ fn download_presentation(presentation: &Presentation, out_dir: &Path, auth: &str
|
||||
let mut tries = 0;
|
||||
let mut tuple = None;
|
||||
while tries < 8 {
|
||||
if tries > 0 {
|
||||
println!("Failed to start download! Retrying!");
|
||||
}
|
||||
let try = try_download(presentation, auth);
|
||||
if try.is_some() {
|
||||
tuple = try;
|
||||
|
Reference in New Issue
Block a user