Improved search error

pull/198/head
M66B 4 years ago
parent f7886a5760
commit adf130df6b

@ -459,8 +459,12 @@ 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) {
ProtocolException pex = new ProtocolException( String msg;
"Search " + account.host, ex); if (ex instanceof ProtocolException)
msg = context.getString(R.string.title_service_auth, account.host + ": " + ex.getMessage());
else
msg = "Search " + account.host;
ProtocolException pex = new ProtocolException(msg, ex);
Log.e(pex); Log.e(pex);
throw pex; throw pex;
} }

Loading…
Cancel
Save