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