]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
common : improve download error reporting (#19491)
authorAdrien Gallouët <redacted>
Wed, 11 Feb 2026 08:27:55 +0000 (09:27 +0100)
committerGitHub <redacted>
Wed, 11 Feb 2026 08:27:55 +0000 (09:27 +0100)
Signed-off-by: Adrien Gallouët <redacted>
common/download.cpp

index 57f29a23ba4211d06eab543e691cd8f76da1e1d4..8710438aa4c8c02d3ad3d200951a8bf06df3afb0 100644 (file)
@@ -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;
     }