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

BUX-477: GetAccessKey error message #540

Merged
merged 3 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion action_access_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (c *Client) GetAccessKey(ctx context.Context, xPubID, id string) (*AccessKe
if err != nil {
return nil, err
} else if accessKey == nil {
return nil, ErrMissingXpub
return nil, ErrAccessKeyNotFound
}

// make sure this is the correct accessKey
Expand Down
3 changes: 3 additions & 0 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ var ErrXpubIDMisMatch = errors.New("xpub_id mismatch")
// ErrMissingXpub is when the field is required but missing
var ErrMissingXpub = errors.New("could not find xpub")

// ErrAccessKeyNotFound is when the access key not found
var ErrAccessKeyNotFound = errors.New("access key not found")

// ErrMissingLockingScript is when the field is required but missing
var ErrMissingLockingScript = errors.New("could not find locking script")

Expand Down
Loading