From 9f9e829ef603c92714b822047ec2161f5aa95765 Mon Sep 17 00:00:00 2001 From: KnyazevSK Date: Sun, 4 Jun 2023 19:02:45 +0400 Subject: [PATCH] =?UTF-8?q?code:=20=D0=BE=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 --- project/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/project/main.cpp b/project/main.cpp index b333ac6..34607f0 100644 --- a/project/main.cpp +++ b/project/main.cpp @@ -46,6 +46,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; }