From c428241395db9ae375cdd7f98855879e7452b45e Mon Sep 17 00:00:00 2001 From: KhodiukMR Date: Sun, 26 May 2024 12:38:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA?= =?UTF-8?q?=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 --- CommonVar.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CommonVar.cpp b/CommonVar.cpp index 8d16c82..1b93163 100644 --- a/CommonVar.cpp +++ b/CommonVar.cpp @@ -45,6 +45,10 @@ int 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; }