diff --git a/lab01.cbp b/lab01.cbp
index b503c9c..7fdcebe 100644
--- a/lab01.cbp
+++ b/lab01.cbp
@@ -13,7 +13,12 @@
+
+
+
+
+
diff --git a/main.cpp b/main.cpp
index 2665fe1..dc4b01b 100644
--- a/main.cpp
+++ b/main.cpp
@@ -56,7 +56,12 @@ download(const string& address) {
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &buffer);
res = curl_easy_perform(curl);
if (res!=CURLE_OK){
- cerr << curl_easy_strerror(res);
+ char *ip;
+ if (!curl_easy_getinfo(curl, CURLINFO_PRIMARY_IP, &ip)) {
+ cerr << "Error downloading file from " << ip << ": " << curl_easy_strerror(res) << endl;
+ } else {
+ cerr << "Error downloading file: " << curl_easy_strerror(res) << endl;
+ }
exit(1);
}
curl_easy_cleanup(curl);