1
0
mirror of https://github.com/etesync/android synced 2024-11-17 13:30:00 +00:00

Improve error messages in journal server interactions.

This commit is contained in:
Tom Hacohen 2017-02-16 16:31:08 +00:00
parent 8cfe58a7d1
commit 74b0956f3b

View File

@ -31,8 +31,8 @@ abstract class BaseManager {
try { try {
response = client.newCall(request).execute(); response = client.newCall(request).execute();
} catch (IOException e) { } catch (IOException e) {
App.log.log(Level.SEVERE, "Couldn't download external resource", e); App.log.log(Level.SEVERE, "Failed while connecting to server", e);
throw new Exceptions.ServiceUnavailableException("Failed downloading"); throw new Exceptions.ServiceUnavailableException("[" + e.getClass().getName() + "] " + e.getLocalizedMessage());
} }
if (!response.isSuccessful()) { if (!response.isSuccessful()) {