From 068228a938c37b72b277b157b5331b62bf22d1be Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Thu, 28 Apr 2016 19:52:24 +0000 Subject: [PATCH] forgot a case --- external/3rd/library/webAPI/webAPI.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/external/3rd/library/webAPI/webAPI.cpp b/external/3rd/library/webAPI/webAPI.cpp index 6b57c4bc..c96effe7 100644 --- a/external/3rd/library/webAPI/webAPI.cpp +++ b/external/3rd/library/webAPI/webAPI.cpp @@ -83,6 +83,11 @@ nlohmann::json webAPI::request(std::string endpoint, std::string data, int reqTy { response = nlohmann::json::parse(readBuffer); } + else + { + response["message"] = "Error fetching data from remote."; + response["status"] = "failure"; + } curl_easy_cleanup(curl); // always wipe our butt } else //default err messages below