forgot a case

This commit is contained in:
DarthArgus
2016-04-28 19:52:24 +00:00
parent 18e316631f
commit 068228a938
+5
View File
@@ -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