{"modulePath":"github.com/kptdev/kpt","version":"v1.0.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package resolver\n\n## Functions\n\n```go\nfunc AddErrorResolver(er ErrorResolver)\n```\nAddErrorResolver adds the provided error resolver to the list of resolvers which will be used to resolve errors.\n\n```go\nfunc BuildOutputDetails(stdout string, stderr string) string\n```\n\n## Types\n\n```go\ntype ErrorResolver interface {\n\tResolve(err error) (ResolvedResult, bool)\n}\n```\nErrorResolver is an interface that allows kpt to resolve an error into an error message suitable for the end user.\n\n```go\ntype ResolvedResult struct {\n\tMessage  string\n\tExitCode int\n}\n```\n\n```go\nfunc ResolveError(err error) (ResolvedResult, bool)\n```\nResolveError attempts to resolve the provided error into a descriptive string which will be displayed to the user. If the last return value is false, the error could not be resolved.\n\n","path":"github.com/kptdev/kpt/pkg/lib/errors/resolver","name":"resolver","synopsis":"","isRedistributable":true}
