This commit is contained in:
2026-09-17 13:32:05 +07:00
parent 5ba640bfe4
commit dfa4aa9d8b
9 changed files with 19 additions and 35 deletions
+1 -1
View File
@@ -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())