conversation: do not show error for non critical errors

If an error occurs during the execution of git_remote_fetch, there
is no need to signal any error to the client as it's not a critical
issue (no malformed conversation, mode is recognized, no unauthorized
method) and the sync will be retried later.

Change-Id: I2d875445e51aa6cd78eb2e7dbfe5efb8b2831860
This commit is contained in:
Sébastien Blin
2022-10-27 16:22:35 -04:00
parent 27846c4ef7
commit fe058538fb
4 changed files with 4 additions and 23 deletions

View File

@ -417,7 +417,7 @@ ConversationMembersEventTest::testMemberAddedNoBadFile()
const std::string& conversationId,
int code,
const std::string& /* what */) {
if (accountId == bobId && conversationId == convId && code == 1)
if (accountId == bobId && conversationId == convId && code == 3)
errorDetected = true;
cv.notify_one();
}));