mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-04-14 20:21:16 +02:00
Throw ApiException when adding contact is not successful
This commit is contained in:
@@ -108,7 +108,7 @@ class MailboxApiImpl implements MailboxApi {
|
||||
OkHttpClient client = httpClientProvider.get();
|
||||
Response response = client.newCall(request).execute();
|
||||
if (response.code() == 409) throw new TolerableFailureException();
|
||||
if (!response.isSuccessful()) throw new IOException();
|
||||
if (!response.isSuccessful()) throw new ApiException();
|
||||
}
|
||||
|
||||
private Request.Builder getRequestBuilder(String token) {
|
||||
|
||||
Reference in New Issue
Block a user