Skip to content

Commit

Permalink
manager: catch exceptions when sending text message
Browse files Browse the repository at this point in the history
Change-Id: I1263033e933d68331148bd94c0c1bb63157e2232
Tuleap: #457
  • Loading branch information
aberaud authored and gerrit2 committed Mar 9, 2016
1 parent d5d742e commit 6ee49a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2751,7 +2751,11 @@ Manager::sendTextMessage(const std::string& accountID, const std::string& to,
const auto acc = getAccount(accountID);
if (!acc)
return;
acc->sendTextMessage(to, payloads);
try {
acc->sendTextMessage(to, payloads);
} catch (const std::exception& e) {
RING_ERR("Exception during text message sending: %s", e.what());
}
}

void
Expand Down

0 comments on commit 6ee49a3

Please sign in to comment.