From 88e87094ef17d2a4fa51418104ed1b4cb15748e5 Mon Sep 17 00:00:00 2001 From: PodlovchenkoDD Date: Mon, 19 May 2025 16:54:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=B2=D0=BE=D0=B4=20=D1=82=D0=B5?= =?UTF-8?q?=D0=BA=D1=81=D1=82=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 --- TWOPO.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TWOPO.cpp b/TWOPO.cpp index f5e0150..7189edf 100644 --- a/TWOPO.cpp +++ b/TWOPO.cpp @@ -53,6 +53,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 != 0){ + cerr << curl_easy_strerror(res); + exit(1); + } } return 0; }