aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-15 12:33:59 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-06-15 12:33:59 +0200
commite0575642b5c3189fd83e411c5ce11bb6c0a43f21 (patch)
treeacbd7d3f99835a11346dc529c21b76f0dfc4f52c /src/main/java/eu
parent73679b97f1264f6c2fe7f06a46f91611d9d96217 (diff)
log all fail reasons
Diffstat (limited to 'src/main/java/eu')
-rw-r--r--src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
index 87c6fc4a..1bb70690 100644
--- a/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
+++ b/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
@@ -110,6 +110,7 @@ public class HttpUploadConnection implements Transferable {
try {
pair = AbstractConnectionManager.createInputStream(file, true);
} catch (FileNotFoundException e) {
+ Log.d(Config.LOGTAG,account.getJid().toBareJid()+": could not find file to upload - "+e.getMessage());
fail();
return;
}
@@ -129,15 +130,14 @@ public class HttpUploadConnection implements Transferable {
if (!canceled) {
new Thread(new FileUploader()).start();
}
+ return;
} catch (MalformedURLException e) {
- fail();
+ //fall through
}
- } else {
- fail();
}
- } else {
- fail();
}
+ Log.d(Config.LOGTAG,account.getJid().toString()+": invalid response to slot request "+packet);
+ fail();
}
});
message.setTransferable(this);
@@ -203,6 +203,7 @@ public class HttpUploadConnection implements Transferable {
@Override
public void error(int errorCode, Message object) {
+ Log.d(Config.LOGTAG,"pgp encryption failed");
fail();
}