From 6b229e42040e094011ba7c33732b14c87656425c Mon Sep 17 00:00:00 2001 From: AkinshinaDA Date: Thu, 24 Apr 2025 16:42:56 +0300 Subject: [PATCH] =?UTF-8?q?Code:=20=D0=9E=D0=B1=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=BA=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cpp b/main.cpp index dee74a5..9eceb2d 100644 --- a/main.cpp +++ b/main.cpp @@ -42,6 +42,7 @@ int main(int argc, char* argv[]){ CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, argv[1]); res = curl_easy_perform(curl); + if(res != CURLE_OK) fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(res)); } curl_easy_cleanup(curl); return 0;