-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
With the current exceptions message, it's hard to get understand which part of the service is failing like data-layer, logic-layer, calling another service etc.
Describe the solution you'd like
Clear and concise details of error so it could help to understand what is the problem.
https://github.com/google/go-github/blob/master/github/github.go#L770
Describe alternatives you've considered
Create a custom Error type to add details about caller, component, request body etc. This custom type will have two different implementations for Error() methods:
- One implementation of the Error function will print the error message we want to display to end-users either as Api response or CLI response.
- Other implementations of the Error function will print enhanced error details while we logged using logger.
ravisuhag and rahmatrhd
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request