Skip to content

Commit 0c1f39a

Browse files
authored
common : improve download error reporting (ggml-org#19491)
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
1 parent 73cd5e1 commit 0c1f39a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

common/download.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,10 @@ static bool common_pull_file(httplib::Client & cli,
305305
);
306306

307307
if (!res) {
308-
LOG_ERR("%s: error during download. Status: %d\n", __func__, res ? res->status : -1);
308+
LOG_ERR("%s: download failed: %s (status: %d)\n",
309+
__func__,
310+
httplib::to_string(res.error()).c_str(),
311+
res ? res->status : -1);
309312
return false;
310313
}
311314

0 commit comments

Comments
 (0)