This commit is contained in:
parent
4710021393
commit
2619e311cf
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.6)
|
cmake_minimum_required (VERSION 3.6)
|
||||||
project (mastorss
|
project (mastorss
|
||||||
VERSION 0.7.5
|
VERSION 0.7.6
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,13 @@ ${HOME}/.config/mastorss/config-example.json
|
||||||
|
|
||||||
## Error codes
|
## Error codes
|
||||||
|
|
||||||
Same as [mastodon-cpp](https://schlomp.space/tastytea/mastodon-cpp/src/branch/master/README.md#error-codes)
|
Same as
|
||||||
|
[mastodon-cpp](https://schlomp.space/tastytea/mastodon-cpp/src/branch/master/README.md#error-codes),
|
||||||
|
plus:
|
||||||
|
|
||||||
|
| Code | Explanation |
|
||||||
|
| --------: |:----------------------------------------|
|
||||||
|
| 1 | Could not send post for unknown reasons |
|
||||||
|
|
||||||
# Copyright
|
# Copyright
|
||||||
|
|
||||||
|
|
|
@ -100,6 +100,12 @@ int main(int argc, char *argv[])
|
||||||
Mastodon::Easy masto(instance, access_token);
|
Mastodon::Easy masto(instance, access_token);
|
||||||
|
|
||||||
answer = masto.send_post(*rit, ret);
|
answer = masto.send_post(*rit, ret);
|
||||||
|
if (answer.to_object().isNull())
|
||||||
|
{
|
||||||
|
std::cerr << "Could not send post for unknown reasons.\n"
|
||||||
|
std::cerr << "Please file a bug at <https://schlomp.space/tastytea/mastorss/issues>.\n":
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user