generated from VLADIMIR/template
clear
This commit is contained in:
@@ -34,7 +34,7 @@ func (s *server) DownloadTeamQR(ctx context.Context, req *proto.GetGameReq) (*ht
|
||||
switch {
|
||||
case errors.Is(err, games_repo.ErrGameNotFound):
|
||||
return nil, status.Error(codes.NotFound, err.Error())
|
||||
case errors.Is(err, team_qr_pdf.ErrNoTeams):
|
||||
case errors.Is(err, team_qr_pdf.ErrNoCards):
|
||||
return nil, status.Error(codes.FailedPrecondition, err.Error())
|
||||
default:
|
||||
return nil, status.Error(codes.Internal, err.Error())
|
||||
|
||||
Reference in New Issue
Block a user