From 75075e5ca85382c2f8ff6978a955c8159340f2b6 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Sun, 29 Jul 2018 16:26:25 +0200 Subject: catch all exceptions when checking file size --- src/main/java/de/pixart/messenger/http/HttpUploadConnection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/de/pixart/messenger/http') diff --git a/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java b/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java index 090e7ad07..eee8b3c01 100644 --- a/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java +++ b/src/main/java/de/pixart/messenger/http/HttpUploadConnection.java @@ -230,7 +230,7 @@ public class HttpUploadConnection implements Transferable { Log.d(Config.LOGTAG, "http upload failed because response code was " + code); fail("http upload failed because response code was " + code); } - } catch (IOException e) { + } catch (Exception e) { e.printStackTrace(); Log.d(Config.LOGTAG, "http upload failed " + e.getMessage()); fail(e.getMessage()); -- cgit v1.2.3