Skip to content

Improve the error handling #1

Description

@laraibg786

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions