diff options
author | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-03-26 14:22:39 (EDT) |
---|---|---|
committer | ticktock35 <ticktock35@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-03-26 14:22:39 (EDT) |
commit | 67d8721cc9b065a03e19c0495a2906a06017327a (patch) | |
tree | b4aab0418a6e46c45bdaa5f76f9ae3052f065ba5 /libopkg | |
parent | 897c4599befe8d8d8afd6222d34d1d9229f15f61 (diff) |
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
Diffstat (limited to 'libopkg')
-rw-r--r-- | libopkg/opkg_download.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |