mirror of
https://github.com/TabbyML/tabby
synced 2024-11-22 17:41:54 +00:00
fix(download): show full error context on download failure (#2163)
This commit is contained in:
parent
5fe6ca3b44
commit
eb0b2644ab
@ -138,7 +138,7 @@ impl HTTPSHandler {
|
|||||||
.and_then(|r| r.error_for_status())
|
.and_then(|r| r.error_for_status())
|
||||||
.map_err(|e| DownloadError::HttpError {
|
.map_err(|e| DownloadError::HttpError {
|
||||||
name: input.into(),
|
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);
|
let total_size = downloaded + res.content_length().unwrap_or(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user