Oops, forgot error checking.
the build was successful Details

This commit is contained in:
tastytea 2018-08-25 23:38:17 +02:00
parent cf3f13fff1
commit cb31080a57
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 4 additions and 4 deletions

View File

@ -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
) )

View File

@ -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;
} }