Skip to content

Commit 9a61c4a

Browse files
authored
More detailed error response on authentication/registration failure (#356)
1 parent 3cbca32 commit 9a61c4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gateway/src/node/client_handling/websocket/connection_handler.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ impl<S> Handle<S> {
283283
ClientsHandlerResponse::Error(e) => {
284284
error!("Authentication unexpectedly failed - {}", e);
285285
ServerResponse::Error {
286-
message: "unexpected failure".into(),
286+
message: format!("Authentication failure - {}", e),
287287
}
288288
}
289289
_ => panic!("received response to wrong query!"), // this should NEVER happen
@@ -349,7 +349,7 @@ impl<S> Handle<S> {
349349
ClientsHandlerResponse::Error(e) => {
350350
error!("Post-handshake registration unexpectedly failed - {}", e);
351351
ServerResponse::Error {
352-
message: "unexpected failure".into(),
352+
message: format!("Registration failure - {}", e),
353353
}
354354
}
355355
_ => panic!("received response to wrong query!"), // this should NEVER happen

0 commit comments

Comments
 (0)