{"modulePath":"github.com/pluralsh/plural-cli","version":"v0.12.69","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Functions\n\n```go\nfunc ErrorWrap(err error, explanation string) error\n```\n\n```go\nfunc GraphQL(err error) error\n```\nGraphQL presents server error messages while retaining the response for errors.As. Errors without a usable message are returned unchanged.\n\n```go\nfunc GraphQLInterceptor(ctx context.Context, req *http.Request, info *clientv2.GQLRequestInfo, res any, next clientv2.RequestInterceptorFunc) error\n```\nGraphQLInterceptor formats errors after all other request interceptors finish.\n\n","path":"github.com/pluralsh/plural-cli/pkg/utils/errors","name":"errors","synopsis":"","isRedistributable":true}
