Update ErrRequestErrorBase from [plugin.downstreamError] to [plugin.requestFailureError] (#100965)
* Update ErrRequestErrorBase to make it more clear for developers * Trigger build * requestError -> requestFailureError * Fix test * Update pkg/plugins/backendplugin/grpcplugin/client_v2.go Co-authored-by: Will Browne <wbrowne@users.noreply.github.com> --------- Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
This commit is contained in:
co-authored by
Will Browne
parent
c654a580f7
commit
9eda0f44ac
@@ -24,9 +24,9 @@ var (
|
||||
errutil.WithPublicMessage("Plugin health check failed"),
|
||||
errutil.WithDownstream())
|
||||
|
||||
// ErrPluginDownstreamErrorBase error returned when a plugin request fails.
|
||||
// Exposed as a base error to wrap it with plugin downstream errors.
|
||||
ErrPluginDownstreamErrorBase = errutil.Internal("plugin.downstreamError",
|
||||
// ErrPluginRequestFailureErrorBase error returned when a plugin request fails.
|
||||
// Exposed as a base error to wrap it with plugin request errors.
|
||||
ErrPluginRequestFailureErrorBase = errutil.Internal("plugin.requestFailureError",
|
||||
errutil.WithPublicMessage("An error occurred within the plugin"),
|
||||
errutil.WithDownstream())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user