This commit is contained in:
xmdhs 2023-09-16 01:27:51 +08:00 committed by GitHub
parent 0885168ebe
commit d16456b7b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,7 +246,7 @@ func (y *Yggdrasil) GetProfile(ctx context.Context, uuid string, unsigned bool,
for i, v := range pl { for i, v := range pl {
sign, err := s.Sign([]byte(v.Value)) sign, err := s.Sign([]byte(v.Value))
if err != nil { if err != nil {
return yggdrasil.UserInfo{}, fmt.Errorf("GetProfile: %w", ErrNotUser) return yggdrasil.UserInfo{}, fmt.Errorf("GetProfile: %w", err)
} }
pl[i].Signature = sign pl[i].Signature = sign
} }