Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
fix: internal error
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok committed Mar 21, 2024
1 parent f69627d commit 51e9c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/preconfirmation/preconfirmation.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func (p *Preconfirmation) handleBid(
case st := <-statusC:
switch st {
case providerapiv1.BidResponse_STATUS_REJECTED:
return errors.New("bid rejected")
return status.Errorf(codes.Internal, "bid rejected")
case providerapiv1.BidResponse_STATUS_ACCEPTED:
preConfirmation, err := p.signer.ConstructPreConfirmation(bid)
if err != nil {
Expand Down

0 comments on commit 51e9c45

Please sign in to comment.