Output notice when retrying

This commit is contained in:
2017-03-02 18:04:51 +01:00
parent dab3e94027
commit 1d88e7a60d

View File

@@ -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;