mirror of https://github.com/M66B/FairEmail.git
Simplified boundary exception
This commit is contained in:
parent
877d1f1764
commit
02ccc2f8b7
|
@ -493,12 +493,14 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
|
||||||
return search(false, browsable.keywords, protocol, state);
|
return search(false, browsable.keywords, protocol, state);
|
||||||
}
|
}
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
String msg;
|
ProtocolException pex;
|
||||||
if (ex instanceof ProtocolException)
|
if (ex instanceof ProtocolException)
|
||||||
msg = context.getString(R.string.title_service_auth, account.host + ": " + ex.getMessage());
|
pex = new ProtocolException(
|
||||||
|
context.getString(R.string.title_service_auth,
|
||||||
|
account.host + ": " + ex.getMessage()),
|
||||||
|
ex.getCause());
|
||||||
else
|
else
|
||||||
msg = "Search " + account.host;
|
pex = new ProtocolException("Search " + account.host, ex);
|
||||||
ProtocolException pex = new ProtocolException(msg, ex);
|
|
||||||
Log.e(pex);
|
Log.e(pex);
|
||||||
throw pex;
|
throw pex;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue