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();