Closed colin-axner closed 4 years ago
refactor DNE errors into one
Also remove the braces : { %s } when wrapping errors. Instead it should be fmt.Errorf("some error: %s", suberr)
: { %s }
fmt.Errorf("some error: %s", suberr)
Summary
The errors are not consistent within the codebase. We should follow golang guidelines for errors, as well as add errors.go files to each module and with the correct codespace. For example, "handlers" could be a codespace with a ErrTxDNE error type.