From 98f14b60050f3a9eb711beb406f3ea6d79d3ab0a Mon Sep 17 00:00:00 2001 From: ShchipkovMY Date: Wed, 13 Sep 2023 17:01:39 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=BE=D1=88=D0=B8?= =?UTF-8?q?=D0=B1=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 db46ddf..8c06ab9 100644 --- a/main.cpp +++ b/main.cpp @@ -48,6 +48,11 @@ int main(int argc, char* argv[]) curl_easy_setopt(curl, CURLOPT_URL, argv[1]); res = curl_easy_perform(curl); curl_easy_cleanup(curl); + if (res != CURLE_OK) + { + cout << curl_easy_strerror; + exit(1); + } } return 0; }