From: Adrien Gallouët Date: Wed, 11 Feb 2026 08:27:55 +0000 (+0100) Subject: common : improve download error reporting (#19491) X-Git-Tag: upstream/0.0.8067~68 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=0c1f39a9ae68d502bc73b2901e6985ae9f4557a1;p=pkg%2Fggml%2Fsources%2Fllama.cpp common : improve download error reporting (#19491) Signed-off-by: Adrien Gallouët --- diff --git a/common/download.cpp b/common/download.cpp index 57f29a23b..8710438aa 100644 --- a/common/download.cpp +++ b/common/download.cpp @@ -305,7 +305,10 @@ static bool common_pull_file(httplib::Client & cli, ); if (!res) { - LOG_ERR("%s: error during download. Status: %d\n", __func__, res ? res->status : -1); + LOG_ERR("%s: download failed: %s (status: %d)\n", + __func__, + httplib::to_string(res.error()).c_str(), + res ? res->status : -1); return false; }