1
0
mirror of https://github.com/etesync/android synced 2024-11-15 12:28:57 +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 {
response = client.newCall(request).execute();
} catch (IOException e) {
App.log.log(Level.SEVERE, "Couldn't download external resource", e);
throw new Exceptions.ServiceUnavailableException("Failed downloading");
App.log.log(Level.SEVERE, "Failed while connecting to server", e);
throw new Exceptions.ServiceUnavailableException("[" + e.getClass().getName() + "] " + e.getLocalizedMessage());
}
if (!response.isSuccessful()) {