chore: update error messages

This commit is contained in:
johnnyjoy
2024-09-21 18:23:30 +08:00
parent f102aeb9b9
commit 7a4d54bb3c
3 changed files with 27 additions and 27 deletions

View File

@@ -49,7 +49,7 @@ func (in *GRPCAuthInterceptor) AuthenticationInterceptor(ctx context.Context, re
}
accessToken, err := getTokenFromMetadata(md)
if err != nil {
return nil, status.Errorf(codes.Unauthenticated, err.Error())
return nil, status.Errorf(codes.Unauthenticated, "failed to get access token: %v", err)
}
username, err := in.authenticate(ctx, accessToken)