From 67d8721cc9b065a03e19c0495a2906a06017327a Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Thu, 26 Mar 2009 18:22:39 +0000 Subject: [PATCH] Thanks to Keon's notify. converting curl error code to readable message git-svn-id: http://opkg.googlecode.com/svn/trunk@209 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- libopkg/opkg_download.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c index a212969..999dc87 100644 --- a/libopkg/opkg_download.c +++ b/libopkg/opkg_download.c @@ -111,7 +111,7 @@ int opkg_download(opkg_conf_t *conf, const char *src, { long error_code; curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &error_code); - opkg_message(conf, OPKG_ERROR, "Failed to download %s, error %d\n", src, error_code); + opkg_message(conf, OPKG_ERROR, "Failed to download %s. \nerror detail: %s\n", src, curl_easy_strerror(res)); free(tmp_file_location); free(src_basec); curl_easy_cleanup (curl); -- 2.25.1