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:
parent
8cfe58a7d1
commit
74b0956f3b
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user