From: ticktock35 Date: Thu, 26 Mar 2009 18:22:39 +0000 (+0000) Subject: Thanks to Keon's notify. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=67d8721cc9b065a03e19c0495a2906a06017327a;p=oweals%2Fopkg-lede.git 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 --- 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);