aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-15 12:33:59 +0200
committerChristian Schneppe <christian@pix-art.de>2016-06-19 20:02:10 +0200
commitd12a57cbb362d6158c7b4c5f70074b3c829308ea (patch)
tree30af0dec5eec06005120ced11225a888e23ce097 /src/main/java
parent7099c55a67caf7466dd43bf5c1c1553916770cbc (diff)
log all fail reasons
Diffstat (limited to 'src/main/java')
-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 56f1ed5bf..2bd22fd1b 100644
--- a/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
+++ b/src/main/java/eu/siacs/conversations/http/HttpUploadConnection.java
@@ -114,6 +114,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;
}
@@ -133,15 +134,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);
@@ -207,6 +207,7 @@ public class HttpUploadConnection implements Transferable {
@Override
public void error(int errorCode, Message object) {
+ Log.d(Config.LOGTAG,"pgp encryption failed");
fail();
}