summaryrefslogtreecommitdiff
path: root/src/downloader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/downloader.rs')
-rw-r--r--src/downloader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/downloader.rs b/src/downloader.rs
index cf78a49..64df06e 100644
--- a/src/downloader.rs
+++ b/src/downloader.rs
@@ -26,7 +26,7 @@ impl Downloader {
let resp = reqwest::get(&url.to_string()).await?;
let total_size = resp.content_length().unwrap_or(0);
- let bar = make_progress_bar(total_size);
+ let bar = make_progress_bar(total_size)?;
let mut out = tokio::fs::File::create(&path).await?;
// Stream download with progress updates