diff --git a/LABA1.cpp b/LABA1.cpp
index 10c5620..c9cf0a5 100644
--- a/LABA1.cpp
+++ b/LABA1.cpp
@@ -87,6 +87,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);
+            }
         }
         return 0;
     }