This commit is contained in:
parent
cf3f13fff1
commit
cb31080a57
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.7)
|
cmake_minimum_required (VERSION 3.7)
|
||||||
project (mastorss
|
project (mastorss
|
||||||
VERSION 0.7.0
|
VERSION 0.7.1
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -96,15 +96,15 @@ int main(int argc, char *argv[])
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
string answer;
|
Mastodon::Easy::Status answer;
|
||||||
Mastodon::Easy masto(instance, access_token);
|
Mastodon::Easy masto(instance, access_token);
|
||||||
|
|
||||||
masto.send_post(*rit);
|
answer = masto.send_post(*rit, ret);
|
||||||
|
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
std::cerr << "Error code: " << ret << '\n';
|
std::cerr << "Error code: " << ret << '\n';
|
||||||
std::cerr << answer << '\n';
|
std::cerr << answer.to_object().asString() << '\n';
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user