Skip to content

Commit

Permalink
Uniform error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
jholdstock committed Sep 12, 2024
1 parent 02ba4f6 commit 41f8689
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/rpc/rpcserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1819,7 +1819,7 @@ func (s *walletServer) PurchaseTickets(ctx context.Context,
}
vspClient, err = loader.VSP(cfg)
if err != nil {
return nil, status.Errorf(codes.Unknown, "VSP Server instance failed to start: %v", err)
return nil, status.Errorf(codes.Unknown, "VSP client failed to start. Error: %v", err)
}
}

Expand Down Expand Up @@ -2620,7 +2620,7 @@ func (t *ticketbuyerServer) RunTicketBuyer(req *pb.RunTicketBuyerRequest, svr pb
}
vspClient, err = loader.VSP(cfg)
if err != nil {
return status.Errorf(codes.Unknown, "TicketBuyer instance failed to start. Error: %v", err)
return status.Errorf(codes.Unknown, "VSP client failed to start. Error: %v", err)
}
}
if req.BalanceToMaintain < 0 {
Expand Down Expand Up @@ -4095,7 +4095,7 @@ func (s *walletServer) SyncVSPFailedTickets(ctx context.Context, req *pb.SyncVSP
}
vspClient, err := loader.VSP(cfg)
if err != nil {
return nil, status.Errorf(codes.Unknown, "TicketBuyer instance failed to start. Error: %v", err)
return nil, status.Errorf(codes.Unknown, "VSP client failed to start. Error: %v", err)
}

// Process tickets fee if needed.
Expand Down Expand Up @@ -4135,7 +4135,7 @@ func (s *walletServer) ProcessManagedTickets(ctx context.Context, req *pb.Proces
}
vspClient, err := loader.VSP(cfg)
if err != nil {
return nil, status.Errorf(codes.Unknown, "VSPClient instance failed to start. Error: %v", err)
return nil, status.Errorf(codes.Unknown, "VSP client failed to start. Error: %v", err)
}

tickets, err := s.wallet.ProcessedTickets(ctx)
Expand Down Expand Up @@ -4168,7 +4168,7 @@ func (s *walletServer) ProcessUnmanagedTickets(ctx context.Context, req *pb.Proc
}
vspClient, err := loader.VSP(cfg)
if err != nil {
return nil, status.Errorf(codes.Unknown, "VSPClient instance failed to start. Error: %v", err)
return nil, status.Errorf(codes.Unknown, "VSP client failed to start. Error: %v", err)
}

unmanagedTickets, err := s.wallet.UnprocessedTickets(ctx)
Expand Down Expand Up @@ -4198,7 +4198,7 @@ func (s *walletServer) SetVspdVoteChoices(ctx context.Context, req *pb.SetVspdVo
}
vspClient, err := loader.VSP(cfg)
if err != nil {
return nil, status.Errorf(codes.Unknown, "VSPClient instance failed to start. Error: %v", err)
return nil, status.Errorf(codes.Unknown, "VSP client failed to start. Error: %v", err)
}

treasuryChoices := make(map[string]string)
Expand Down

0 comments on commit 41f8689

Please sign in to comment.