log tokenizer download status (#1275)

This commit is contained in:
Yingjie He
2025-02-19 14:40:06 -08:00
committed by GitHub
parent 3f8f67581e
commit 26ce0e6706
+6 -1
View File
@@ -42,7 +42,12 @@ async fn download_tokenizer(repo_id: &str) -> Result<(), Box<dyn Error>> {
// 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?;