diff src/core/http.cc @ 202:71832ffe425a

animia: re-add kvm fd source this is all being merged from my wildly out-of-date laptop. SORRY! in other news, I edited the CI file to install the wayland client as well, so the linux CI build might finally get wayland stuff.
author Paper <paper@paper.us.eu.org>
date Tue, 02 Jan 2024 06:05:06 -0500
parents 9b10175be389
children 53211cb1e7f5
line wrap: on
line diff
--- a/src/core/http.cc	Sun Nov 19 19:13:28 2023 -0500
+++ b/src/core/http.cc	Tue Jan 02 06:05:06 2024 -0500
@@ -1,10 +1,10 @@
 #include "core/http.h"
 #include "core/session.h"
 #include <QByteArray>
-#include <QMessageBox>
 #include <curl/curl.h>
 #include <string>
 #include <vector>
+#include <iostream>
 
 namespace HTTP {
 
@@ -31,11 +31,8 @@
 		CURLcode res = curl_easy_perform(curl);
 		session.IncrementRequests();
 		curl_easy_cleanup(curl);
-		if (res != CURLE_OK) {
-			QMessageBox box(QMessageBox::Icon::Critical, "",
-			                QString("curl_easy_perform(curl) failed!: ") + QString(curl_easy_strerror(res)));
-			box.exec();
-		}
+		if (res != CURLE_OK)
+			std::cerr << "curl_easy_perform(curl) failed!: " << curl_easy_strerror(res) << std::endl;
 	}
 	return userdata;
 }
@@ -59,11 +56,8 @@
 		CURLcode res = curl_easy_perform(curl);
 		session.IncrementRequests();
 		curl_easy_cleanup(curl);
-		if (res != CURLE_OK) {
-			QMessageBox box(QMessageBox::Icon::Critical, "",
-			                QString("curl_easy_perform(curl) failed!: ") + QString(curl_easy_strerror(res)));
-			box.exec();
-		}
+		if (res != CURLE_OK)
+			std::cerr << "curl_easy_perform(curl) failed!: " << curl_easy_strerror(res) << std::endl;
 	}
 	return userdata;
 }