From 1d88e7a60d6a71251de8110168d1a31be0f35e4f Mon Sep 17 00:00:00 2001 From: Boris-Chengbiao Zhou Date: Thu, 2 Mar 2017 18:04:51 +0100 Subject: [PATCH] Output notice when retrying --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index cdacbd6..d063d21 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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;