return on error

This commit is contained in:
Petr Bena 2014-05-25 16:20:22 +02:00
parent 255ebd7b79
commit c02c65df69

View File

@ -111,7 +111,10 @@ int main(int argc, char *argv[])
res = curl_easy_perform(curl);
/* Check for errors */
if(res != CURLE_OK)
{
cerr << "curl_easy_perform() failed: " << curl_easy_strerror(res) << endl;
return 12;
}
cout << "Successfully pastebined to: " << readBuffer;
curl_easy_cleanup(curl);
} else