From 26ce0e6706300f4d68c13e98d06c5a0055fd24a3 Mon Sep 17 00:00:00 2001 From: Yingjie He Date: Wed, 19 Feb 2025 14:40:06 -0800 Subject: [PATCH] log tokenizer download status (#1275) --- crates/goose/build.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/goose/build.rs b/crates/goose/build.rs index 446a3d48..1c99b236 100644 --- a/crates/goose/build.rs +++ b/crates/goose/build.rs @@ -42,7 +42,12 @@ async fn download_tokenizer(repo_id: &str) -> Result<(), Box> { // Download the file let response = reqwest::get(&file_url).await?; if !response.status().is_success() { - return Err(format!("Failed to download tokenizer for {}", repo_id).into()); + return Err(format!( + "Failed to download tokenizer for {}, status: {}", + repo_id, + response.status() + ) + .into()); } let content = response.bytes().await?;