From eb0b2644ab5ad8b1d3a238d4186d9f8e3d01317b Mon Sep 17 00:00:00 2001 From: boxbeam Date: Fri, 17 May 2024 12:34:08 -0400 Subject: [PATCH] fix(download): show full error context on download failure (#2163) --- crates/aim-downloader/src/https.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/aim-downloader/src/https.rs b/crates/aim-downloader/src/https.rs index 9150367ad..a2fea8c70 100644 --- a/crates/aim-downloader/src/https.rs +++ b/crates/aim-downloader/src/https.rs @@ -138,7 +138,7 @@ impl HTTPSHandler { .and_then(|r| r.error_for_status()) .map_err(|e| DownloadError::HttpError { name: input.into(), - code: e.status().unwrap_or_default().to_string(), + code: e.to_string(), })?; let total_size = downloaded + res.content_length().unwrap_or(0);