Skip to content

Commit

Permalink
merge curl error code/string output
Browse files Browse the repository at this point in the history
  • Loading branch information
hrkfdn committed Apr 30, 2016
1 parent cd6fadf commit 90dd5f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions audioscrobbler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ void CAudioScrobbler::OpenURL(std::string url, const char* postfields = 0, char*
// Sometimes last.fm likes to just timeout for no reason, leaving us hanging.
// If this happens, retry a few times with a small delay.
if (res != CURLE_OK) {
eprintf("libcurl: (%d)", res);
eprintf("%s", curl_easy_strerror(res));
eprintf("libcurl error (%d): %s", res, curl_easy_strerror(res));
eprintf("Will retry %d times with a %d second delay.", CURL_MAX_RETRIES, CURL_RETRY_DELAY);

int retries = 0;
Expand Down

0 comments on commit 90dd5f7

Please sign in to comment.