get some info on why curl fails

git-svn-id: svn://localhost/ardour2/branches/3.0@14192 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2013-03-08 19:51:35 +00:00
parent ed5ff77313
commit e05e9f650d

View file

@ -80,7 +80,7 @@ _pingback (void *arg)
curl_global_init (CURL_GLOBAL_NOTHING);
c = curl_easy_init ();
curl_easy_setopt(c, CURLOPT_WRITEFUNCTION, curl_write_data);
curl_easy_setopt(c, CURLOPT_WRITEDATA, &return_str);
char errbuf[CURL_ERROR_SIZE];
@ -153,6 +153,8 @@ _pingback (void *arg)
annc_file << return_str;
}
}
} else {
std::cerr << "curl failed: " << errbuff << std::endl;
}
curl_easy_cleanup (c);