From d3828ace5f69c4c20cc14a8b21704e2b24de9452 Mon Sep 17 00:00:00 2001 From: LykovaYA Date: Thu, 21 Nov 2024 21:46:58 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lab34.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lab34.cpp b/lab34.cpp index 6866822..e13893c 100644 --- a/lab34.cpp +++ b/lab34.cpp @@ -38,6 +38,10 @@ 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(res); + exit(1); + } } curl_easy_cleanup(curl); return 0;