From 59c9eeff3ecc728e2f3a6d762568c48723dff13a Mon Sep 17 00:00:00 2001 From: Wildan M Date: Sat, 11 Oct 2025 16:37:16 +0700 Subject: [PATCH] Mention source blake3 if error --- src/cook/fetch.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/cook/fetch.rs b/src/cook/fetch.rs index dc44bb31..667c855b 100644 --- a/src/cook/fetch.rs +++ b/src/cook/fetch.rs @@ -56,7 +56,7 @@ pub fn fetch_offline(recipe_dir: &Path, source: &Option) -> Result if source_tar.exists() { if let Some(blake3) = blake3 { if source_tar_blake3 != *blake3 { - return Err(format!("The downloaded tar blake3 is not match and unable to continue in offline mode.")); + return Err(format!("The downloaded tar blake3 '{source_tar_blake3}' is not equal to blake3 in recipe.toml.")); } fetch_extract_tar(source_tar, &source_dir)?; fetch_apply_patches(recipe_dir, patches, script, &source_dir)?; @@ -220,9 +220,6 @@ pub fn fetch(recipe_dir: &Path, source: &Option) -> Result) -> Result