-
Notifications
You must be signed in to change notification settings - Fork 69
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
Implement PluginErrorf
#1228
Implement PluginErrorf
#1228
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this needed? I personally find this a little redundant considering we can do PluginError(fmt.Errorf(format, a...))
. So I am wondering why do we need it.
Wouldn't it be the same for |
|
One of your plugin wraps errors raised by third-party libraries with custom error messages, so both
Do you think we can at least mark it as deprecated? Proposal here. |
My two cents is that you don't need to deprecate de function if we now it's not being used, you can directly delete it (it's an internal function). In any case, if you want to keep |
Apparently it is used, even though in just a couple of places.
Good! OK maybe I'll wait to merge or close the PR to see if someone else wants to express their opinions, since I'm not sure who should take the final decision here—I can, but I'm not an owner of the library here, so I'm probably not the best person. |
What this PR does / why we need it:
This PR implements the
PluginErrorf
function, which works similarly toDownstreamErrorf
.