From 6076e05bf6de4656720175393a99d4c14fc8b502 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Fri, 26 Jul 2013 14:03:09 -0700 Subject: [PATCH] JSR-356 fixing oddly worded exception --- .../java/org/eclipse/jetty/websocket/jsr356/JsrSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-websocket/javax-websocket-client-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/JsrSession.java b/jetty-websocket/javax-websocket-client-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/JsrSession.java index e3a11560122..667e1d38120 100644 --- a/jetty-websocket/javax-websocket-client-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/JsrSession.java +++ b/jetty-websocket/javax-websocket-client-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/JsrSession.java @@ -77,7 +77,7 @@ public class JsrSession extends WebSocketSession implements javax.websocket.Sess super(requestURI,websocket,connection); if (!(websocket instanceof AbstractJsrEventDriver)) { - throw new IllegalArgumentException("Cannot non JSR WebSocket: " + websocket); + throw new IllegalArgumentException("Cannot use, not a JSR WebSocket: " + websocket); } AbstractJsrEventDriver jsr = (AbstractJsrEventDriver)websocket; this.config = jsr.getConfig();