From 745828f92678d3f4953424c13c63bd7ec6f4c83e Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:41:09 +0100 Subject: [PATCH] fix: propagate inner download error error --- CHANGELOG.md | 1 + src/download.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c87875..5c3b37e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Fixed - Add back mistakenly removed updates check caching by @daimond113 +- Set download error source to inner error to propagate the error by @daimond113 ## [0.5.0-rc.10] - 2024-11-16 ### Fixed diff --git a/src/download.rs b/src/download.rs index 377f044..20ba395 100644 --- a/src/download.rs +++ b/src/download.rs @@ -164,6 +164,6 @@ pub mod errors { /// Error writing package contents #[error("failed to write package contents")] - WriteFailed(std::io::Error), + WriteFailed(#[source] std::io::Error), } }