diff --git a/main.cpp b/main.cpp index 1f6cc6d..683d6c9 100644 --- a/main.cpp +++ b/main.cpp @@ -51,6 +51,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; }