don't show success message on error
This commit is contained in:
parent
665479bb9f
commit
b20d9e4f87
1 changed files with 5 additions and 5 deletions
|
@ -59,6 +59,11 @@ int main(int argc, char **argv)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
wiki.appendToPage("beezletest", wikiMessage.str());
|
wiki.appendToPage("beezletest", wikiMessage.str());
|
||||||
|
|
||||||
|
std::ostringstream pageUrl;
|
||||||
|
pageUrl << settings.wikiUrl << "/doku.php?id=" << "beezletest";
|
||||||
|
api.sendMessage(std::to_string(message.chat.id),
|
||||||
|
"Stored to wiki at " + pageUrl.str());
|
||||||
}
|
}
|
||||||
catch (std::runtime_error &e)
|
catch (std::runtime_error &e)
|
||||||
{
|
{
|
||||||
|
@ -67,11 +72,6 @@ int main(int argc, char **argv)
|
||||||
api.getLogger().error(reply.str());
|
api.getLogger().error(reply.str());
|
||||||
api.sendMessage(std::to_string(message.chat.id), reply.str());
|
api.sendMessage(std::to_string(message.chat.id), reply.str());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::ostringstream pageUrl;
|
|
||||||
pageUrl << settings.wikiUrl << "/doku.php?id=" << "beezletest";
|
|
||||||
api.sendMessage(std::to_string(message.chat.id),
|
|
||||||
"Stored to wiki at " + pageUrl.str());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue