From 28d8fbedc9be75bf35d09d983536a7ed4b8db911 Mon Sep 17 00:00:00 2001 From: Dave Hrycyszyn Date: Fri, 24 Jan 2020 14:57:39 +0000 Subject: [PATCH] nym-client: revamped error message in websocket --- nym-client/src/sockets/ws.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nym-client/src/sockets/ws.rs b/nym-client/src/sockets/ws.rs index 598a146b7c..28d8b0e196 100644 --- a/nym-client/src/sockets/ws.rs +++ b/nym-client/src/sockets/ws.rs @@ -191,7 +191,7 @@ impl ClientRequest { if message_bytes.len() > sphinx::constants::MAXIMUM_PLAINTEXT_LENGTH { return ServerResponse::Error { message: format!( - "too long message. Sent {} bytes while the maximum is {}", + "message too long. Sent {} bytes, but the maximum is {}", message_bytes.len(), sphinx::constants::MAXIMUM_PLAINTEXT_LENGTH )