diff --git a/jetty-websocket/websocket-server/src/main/java/org/eclipse/jetty/websocket/server/WebSocketServerFactory.java b/jetty-websocket/websocket-server/src/main/java/org/eclipse/jetty/websocket/server/WebSocketServerFactory.java index 2a8606c8cb6..ed6498f8c5b 100644 --- a/jetty-websocket/websocket-server/src/main/java/org/eclipse/jetty/websocket/server/WebSocketServerFactory.java +++ b/jetty-websocket/websocket-server/src/main/java/org/eclipse/jetty/websocket/server/WebSocketServerFactory.java @@ -283,8 +283,8 @@ public class WebSocketServerFactory extends ContainerLifeCycle implements WebSoc } } } - - throw new InvalidWebSocketException("Unable to create Session: unrecognized endpoint type: " + websocket.getClass().getName()); + + throw new InvalidWebSocketException("Unable to create Session: object unrecognized as websocket: " + websocket.getClass().getName()); } /**