-
Notifications
You must be signed in to change notification settings - Fork 30
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
Decorate misbehave if err==nil #40
Comments
Come to think of it, I agree. This is not an intended way to use the library. |
Formally it looks more like not a breaking change but an API clarification. But I do agree that it might break some code. I would certainly object against solutions like "let's just introduce |
No, there may be only one |
@PeterIvanov is this issue resolved? |
@Tochemey I'm afraid it is not. Do you have a comment on the subject matter, one way or another? |
What happens?
errorx.Decorate
returns an error with the following properties:e.IsOfType(...)
always returnsfalse
e.Type()
returnssynthetic.foreign
I suggest that
errorx.Decorate(nil, "")
should either return nil or panic.The text was updated successfully, but these errors were encountered: