From 1b50c5ce06d2356124991fa48e6881f61f646ca3 Mon Sep 17 00:00:00 2001 From: Naz Date: Fri, 1 Aug 2025 09:47:04 +0100 Subject: =?UTF-8?q?=F0=9F=90=9Bfix:=20exit=20with=20non-zero=20status=20wh?= =?UTF-8?q?en=20error=20occurs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/downloader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/downloader.rs') 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 -- cgit v1.2.3