From 8a3aac6ca91801da98d27b93eda6340bded4a11d Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 13 Oct 2024 16:22:46 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=9B=D0=A04=20=D0=BE=D0=B1=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D0=BA=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1?= =?UTF-8?q?=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.cpp b/main.cpp index 3970635..1baffb8 100644 --- a/main.cpp +++ b/main.cpp @@ -48,6 +48,11 @@ int main( int argc, char* argv[]){ CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, argv[0]); res = curl_easy_perform(curl); + if(res != CURLE_OK){ + fprintf(stderr, "curl_easy_perform() failed: %s\n", + curl_easy_strerror(res)); + exit(1); + } curl_easy_cleanup(curl); } return 0;