From 7bfdfe78e9094e9ff0a07d7422b616fa569c3b95 Mon Sep 17 00:00:00 2001 From: jstuczyn Date: Mon, 28 Sep 2020 14:49:47 +0100 Subject: [PATCH] More detailed error response on authentication/registration failure --- .../src/node/client_handling/websocket/connection_handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/src/node/client_handling/websocket/connection_handler.rs b/gateway/src/node/client_handling/websocket/connection_handler.rs index ad29df86a7b..8adde3292a4 100644 --- a/gateway/src/node/client_handling/websocket/connection_handler.rs +++ b/gateway/src/node/client_handling/websocket/connection_handler.rs @@ -283,7 +283,7 @@ impl Handle { ClientsHandlerResponse::Error(e) => { error!("Authentication unexpectedly failed - {}", e); ServerResponse::Error { - message: "unexpected failure".into(), + message: format!("Authentication failure - {}", e), } } _ => panic!("received response to wrong query!"), // this should NEVER happen @@ -349,7 +349,7 @@ impl Handle { ClientsHandlerResponse::Error(e) => { error!("Post-handshake registration unexpectedly failed - {}", e); ServerResponse::Error { - message: "unexpected failure".into(), + message: format!("Registration failure - {}", e), } } _ => panic!("received response to wrong query!"), // this should NEVER happen