From b1eb900698b9ee5ea632cd723c75a012964fd073 Mon Sep 17 00:00:00 2001 From: TekotovaVA Date: Sat, 27 May 2023 19:37:33 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=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 --- cs-lab34.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cs-lab34.cpp b/cs-lab34.cpp index 0e67366..9c5782f 100644 --- a/cs-lab34.cpp +++ b/cs-lab34.cpp @@ -30,6 +30,10 @@ main(int argc, char* argv[]) { CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, argv[1]); res = curl_easy_perform(curl); + if (res != 0) { + cout << curl_easy_strerror(res); + exit(1); + } curl_easy_cleanup(curl); } return 0;