mirror of
https://github.com/benapetr/stikkit.git
synced 2025-04-25 20:41:20 -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);
|
||||
/* 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user