This commit is contained in:
keita
2021-10-07 21:50:46 +09:00
parent d3d0dc96fd
commit e7c0df8e99
5 changed files with 31 additions and 28 deletions
+2 -1
View File
@@ -103,8 +103,9 @@ void HttpGet::process(std::weak_ptr<CocoaTweet::OAuth::OAuth1> _oauth,
throw std::runtime_error(std::string("INTERNAL ERROR : curl(") + std::to_string(res) + ")");
exit(1);
}
#ifndef NDEBUG
std::cout << rcv << std::endl;
#endif
if ((responseCode / 100) == 4) {
auto j = nlohmann::json::parse(rcv);
auto error = j["errors"][0]["code"];