aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/WebsocketManager.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-30 14:18:56 +0300
committerGravatar Vitaly Takmazov2018-03-30 14:18:56 +0300
commita746598faef08af794c66d65ba9324bee5043b73 (patch)
treeeff6bd472547df069b3fcbd3da2e29f750d58626 /juick-server/src/main/java/com/juick/server/WebsocketManager.java
parent42e2a727c2bc15ac15c9a3af66f126dbefe508a2 (diff)
server: process everything in one place
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/WebsocketManager.java')
-rw-r--r--juick-server/src/main/java/com/juick/server/WebsocketManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/WebsocketManager.java b/juick-server/src/main/java/com/juick/server/WebsocketManager.java
index b63377aa..309f605c 100644
--- a/juick-server/src/main/java/com/juick/server/WebsocketManager.java
+++ b/juick-server/src/main/java/com/juick/server/WebsocketManager.java
@@ -153,7 +153,7 @@ public class WebsocketManager extends TextWebSocketHandler {
String attachmentFileName = draft.getAttachment() == null ? "" : draft.getAttachment().getUrl();
serverManager.processMessage(draft.getUser(), draft.getText(), attachmentFileName);
}
- } catch (IOException e) {
+ } catch (Exception e) {
throw new HttpBadRequestException();
}
} else {