Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Tracking Errors in User Application #3

Open
GEverding opened this issue Dec 22, 2020 · 1 comment
Open

Tracking Errors in User Application #3

GEverding opened this issue Dec 22, 2020 · 1 comment

Comments

@GEverding
Copy link

With the migration to solana it's become more important to be able to track specific error codes in our application. The current api for SubmitPayment only returns a simple error.

SubmitPayment(ctx context.Context, payment Payment, opts ...SolanaOption) (txHash []byte, err error)

Returning an actual error enum so it can be tracked in prometheus would be very helpful. Currently there is no list of all possible errors returned so its kind of a best effort to track errors.

@chaseeb
Copy link

chaseeb commented Jan 19, 2021

i believe that list does exist in the go repository

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants