Skip to content

Commit

Permalink
fix(zipper): improve error description when auth (#678)
Browse files Browse the repository at this point in the history
change error description from `authentication failed: client credential
name is token` to `authentication failed: client credential type is
token`.
  • Loading branch information
fanweixiao authored Nov 17, 2023
1 parent fde97fb commit 04ecc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

1 comment on commit 04ecc45

@vercel
Copy link

@vercel vercel bot commented on 04ecc45 Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

yomo – ./

yomo.vercel.app
yomo-yomorun.vercel.app
yomo-git-master-yomorun.vercel.app
yomo.run
www.yomo.run

Please sign in to comment.