You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should have a dex error type that works well with the Go 1.13 error handling functions, as summarized in decred/dcrd#2181
The described approach is what I did for the error type used in the server/db/drivers/pg package that implements Unwrap. This could be the basis for such a type, dex.DexError perhaps:
We should have a dex error type that works well with the Go 1.13 error handling functions, as summarized in decred/dcrd#2181
The described approach is what I did for the error type used in the
server/db/drivers/pg
package that implementsUnwrap
. This could be the basis for such a type,dex.DexError
perhaps:dcrdex/server/db/driver/pg/errors.go
Lines 14 to 38 in ecbeacc
Usage example in the unit test:
dcrdex/server/db/driver/pg/errors_test.go
Lines 8 to 20 in ecbeacc
Originally raised by @JoeGruffins in #477 (comment)
The text was updated successfully, but these errors were encountered: