log all fail reasons
This commit is contained in:
parent
73679b97f1
commit
e0575642b5
|
@ -110,6 +110,7 @@ public class HttpUploadConnection implements Transferable {
|
||||||
try {
|
try {
|
||||||
pair = AbstractConnectionManager.createInputStream(file, true);
|
pair = AbstractConnectionManager.createInputStream(file, true);
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
|
Log.d(Config.LOGTAG,account.getJid().toBareJid()+": could not find file to upload - "+e.getMessage());
|
||||||
fail();
|
fail();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -129,15 +130,14 @@ public class HttpUploadConnection implements Transferable {
|
||||||
if (!canceled) {
|
if (!canceled) {
|
||||||
new Thread(new FileUploader()).start();
|
new Thread(new FileUploader()).start();
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
} catch (MalformedURLException e) {
|
} 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);
|
message.setTransferable(this);
|
||||||
|
@ -203,6 +203,7 @@ public class HttpUploadConnection implements Transferable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void error(int errorCode, Message object) {
|
public void error(int errorCode, Message object) {
|
||||||
|
Log.d(Config.LOGTAG,"pgp encryption failed");
|
||||||
fail();
|
fail();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue