New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap original error by goa.ServiceError #3063
Conversation
This looks good, a few questions:
|
Thank you for your opinion. I added |
Makes sense! A couple more questions:
So the usage would be: res, err := client.SomeMethod(ctx, payload)
se := &ServiceError{name: "fault"}
if errors.As(err, &se) {
log.Errorf(ctx, "faulted with error %s: %s", se.ID, se.Message)
}
Thank you! |
Sorry for late reply. |
The latest change makes sense, I guess we now rely on |
I tried to implement #3058.