code: обработка ошибок

Этот коммит содержится в:
2024-05-19 00:31:22 +03:00
родитель 61541cc2e0
Коммит 0af7355eed

Просмотреть файл

@@ -67,6 +67,10 @@ int main(int argc, char* argv[])
curl_easy_setopt(curl, CURLOPT_URL, argv[0]); curl_easy_setopt(curl, CURLOPT_URL, argv[0]);
res = curl_easy_perform(curl); res = curl_easy_perform(curl);
curl_easy_cleanup(curl); curl_easy_cleanup(curl);
if (res!=0){
cout<<res;
exit(1);
}
} }
} }