Currently we do not have good/meaningful error handling. We can do following steps to improve this:
- improve the centralized error handling in the
NewApiHandlerFunc in server.go.
- use wrapped errors to differentiate the app errors and the library errors.
- improve the handling of errors by handling most of them where the context is meaningful rather than returning all the errors.
Currently we do not have good/meaningful error handling. We can do following steps to improve this:
NewApiHandlerFuncinserver.go.