From 04ecc45d0206458ddba71a296e56b1cf3df63f85 Mon Sep 17 00:00:00 2001 From: "C.C" Date: Fri, 17 Nov 2023 11:24:01 +0800 Subject: [PATCH] fix(zipper): improve error description when auth (#678) change error description from `authentication failed: client credential name is token` to `authentication failed: client credential type is token`. --- core/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server.go b/core/server.go index acfe423c4..e0438fe40 100644 --- a/core/server.go +++ b/core/server.go @@ -240,7 +240,7 @@ func (s *Server) handleHandshakeFrame(fconn frame.Conn, hf *frame.HandshakeFrame "client_type", ClientType(hf.ClientType).String(), "client_name", hf.Name, "credential", hf.AuthName, ) - return nil, fmt.Errorf("authentication failed: client credential name is %s", hf.AuthName) + return nil, fmt.Errorf("authentication failed: client credential type is %s", hf.AuthName) } conn := newConnection(hf.Name, hf.ID, ClientType(hf.ClientType), md, hf.ObserveDataTags, fconn, s.logger)