MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / ContainsPluginError

Function ContainsPluginError

internal/cnpi/plugin/client/errors.go:55–62  ·  view source on GitHub ↗

ContainsPluginError checks if the provided error chain contains a plugin error.

(err error)

Source from the content-addressed store, hash-verified

53
54// ContainsPluginError checks if the provided error chain contains a plugin error.
55func ContainsPluginError(err error) bool {
56 if err == nil {
57 return false
58 }
59
60 var pluginErr *pluginError
61 return errors.As(err, &pluginErr)
62}
63
64func wrapAsPluginErrorIfNeeded(err error) error {
65 if err == nil {

Callers 2

errors_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected