mfconn_create_signed_get: add more verbosity to error conditions

This commit is contained in:
josch
2014-12-19 07:57:01 +01:00
parent 862bdcff80
commit f788706680
16 changed files with 97 additions and 17 deletions

View File

@@ -56,6 +56,10 @@ mfconn_api_upload_poll_upload(mfconn * conn, const char *upload_key,
"upload/poll_upload.php",
"?response_format=json"
"&key=%s", upload_key);
if (api_call == NULL) {
fprintf(stderr, "mfconn_create_unsigned_get failed\n");
return -1;
}
http = http_create();
retval = http_get_buf(http, api_call, _decode_upload_poll_upload,