diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-07-29 16:26:25 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-07-29 16:26:25 +0200 |
commit | 75075e5ca85382c2f8ff6978a955c8159340f2b6 (patch) | |
tree | 3095ad8e059084dc7793ce1d318aa52f3c1ae0a2 /src | |
parent | 21f81f9b1e55e8d4d2c4197ea95a7a817b43c709 (diff) |
catch all exceptions when checking file size
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/de/pixart/messenger/http/HttpUploadConnection.java | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |