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

Commit

Permalink
Changed error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazarii-4chain committed Jan 29, 2024
1 parent a011827 commit 579bf02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion action_paymails.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (c *Client) DeletePaymailAddress(ctx context.Context, address string, opts
if err != nil {
return err
} else if paymailAddress == nil {
return ErrMissingPaymail
return ErrPaymailNotFound
}

// todo: make a better approach for deleting paymail addresses?
Expand Down
3 changes: 3 additions & 0 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ var ErrDuplicateUTXOs = errors.New("duplicate utxos found")
// ErrPaymailAddressIsInvalid is when the paymail address is NOT [email protected]
var ErrPaymailAddressIsInvalid = errors.New("paymail address is invalid")

// ErrPaymailNotFound is when paymaail could not be found
var ErrPaymailNotFound = errors.New("paymail could not be found")

// ErrUtxoNotReserved is when the utxo is not reserved, but a transaction tries to spend it
var ErrUtxoNotReserved = errors.New("transaction utxo has not been reserved for spending")

Expand Down

0 comments on commit 579bf02

Please sign in to comment.