summaryrefslogtreecommitdiff
path: root/src/downloader.rs
diff options
context:
space:
mode:
authorNaz <ndpm13@ch-naseem.com>2025-08-01 09:47:04 +0100
committerNaz <ndpm13@ch-naseem.com>2025-08-01 09:47:04 +0100
commit1b50c5ce06d2356124991fa48e6881f61f646ca3 (patch)
treee291498bc9b03d16ba16ecb882f7724d57853eb3 /src/downloader.rs
parent180fe06facf1f8b4796df69a42596643990b9d32 (diff)
🐛fix: exit with non-zero status when error occurs
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