1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Send: improved check confirm

This commit is contained in:
M66B 2024-09-02 18:07:11 +02:00
parent 6c496c20cb
commit 8a58f7730c

View file

@ -222,8 +222,8 @@ public class Send {
JSONObject jconfirm = new JSONObject(queue.remove(0));
Log.i("Send confirm=" + jconfirm);
if (!jconfirm.getBoolean("ok"))
throw new FileNotFoundException();
if (!jconfirm.optBoolean("ok"))
throw new FileNotFoundException(jconfirm.toString());
} finally {
ws.disconnect();
}