diff --git a/1.depend b/1.depend index fedde6b..05a41b4 100644 --- a/1.depend +++ b/1.depend @@ -20,7 +20,7 @@ -1684761954 source:c:\users\79156\desktop\3\main.cpp +1684762502 source:c:\users\79156\desktop\3\main.cpp diff --git a/main.cpp b/main.cpp index f23ee08..68035e8 100644 --- a/main.cpp +++ b/main.cpp @@ -61,10 +61,11 @@ int main(int argc, char* argv[]) CURLcode res; curl_easy_setopt(curl, CURLOPT_URL, "https://example.com"); res = curl_easy_perform(curl); + if(res != CURLE_OK){ + fprintf(stderr, "curl_easy_perform() failed: %s\n", + curl_easy_strerror(res)); + exit(1);} curl_easy_cleanup(curl); - cerr << res<