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