From cb31080a5767d0e461f09fa1dd3585bed8f8234c Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 25 Aug 2018 23:38:17 +0200 Subject: [PATCH] Oops, forgot error checking. --- CMakeLists.txt | 2 +- src/mastorss.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5e639f..3dbb008 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project (mastorss - VERSION 0.7.0 + VERSION 0.7.1 LANGUAGES CXX ) diff --git a/src/mastorss.cpp b/src/mastorss.cpp index 841fc13..b1b9ea7 100644 --- a/src/mastorss.cpp +++ b/src/mastorss.cpp @@ -96,15 +96,15 @@ int main(int argc, char *argv[]) continue; } - string answer; + Mastodon::Easy::Status answer; Mastodon::Easy masto(instance, access_token); - masto.send_post(*rit); + answer = masto.send_post(*rit, ret); if (ret != 0) { std::cerr << "Error code: " << ret << '\n'; - std::cerr << answer << '\n'; + std::cerr << answer.to_object().asString() << '\n'; return ret; }