mirror of
https://github.com/benapetr/stikkit.git
synced 2025-04-26 13:01:08 -05:00
return on error
This commit is contained in:
parent
255ebd7b79
commit
c02c65df69
@ -111,7 +111,10 @@ int main(int argc, char *argv[])
|
|||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
/* Check for errors */
|
/* Check for errors */
|
||||||
if(res != CURLE_OK)
|
if(res != CURLE_OK)
|
||||||
|
{
|
||||||
cerr << "curl_easy_perform() failed: " << curl_easy_strerror(res) << endl;
|
cerr << "curl_easy_perform() failed: " << curl_easy_strerror(res) << endl;
|
||||||
|
return 12;
|
||||||
|
}
|
||||||
cout << "Successfully pastebined to: " << readBuffer;
|
cout << "Successfully pastebined to: " << readBuffer;
|
||||||
curl_easy_cleanup(curl);
|
curl_easy_cleanup(curl);
|
||||||
} else
|
} else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user