diff options
Diffstat (limited to 'docs/examples/ftpupload.c')
-rw-r--r-- | docs/examples/ftpupload.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/examples/ftpupload.c b/docs/examples/ftpupload.c index 9928b9e81..e79f8d842 100644 --- a/docs/examples/ftpupload.c +++ b/docs/examples/ftpupload.c @@ -122,6 +122,10 @@ int main(void) /* Now run off and do what you've been told! */ res = curl_easy_perform(curl); + /* Check for errors */ + if(res != CURLE_OK) + fprintf(stderr, "curl_easy_perform() failed: %s\n", + curl_easy_strerror(res)); /* clean up the FTP commands list */ curl_slist_free_all (headerlist); |