MCPcopy Create free account
hub / github.com/cli/cli / wrapInternal

Function wrapInternal

internal/barista/observability/telemetry.twirp.go:831–833  ·  view source on GitHub ↗

wrapInternal wraps an error with a prefix as an Internal error. The original error cause is accessible by github.com/pkg/errors.Cause.

(err error, prefix string)

Source from the content-addressed store, hash-verified

829// wrapInternal wraps an error with a prefix as an Internal error.
830// The original error cause is accessible by github.com/pkg/errors.Cause.
831func wrapInternal(err error, prefix string) twirp.Error {
832 return twirp.InternalErrorWith(&wrappedError{prefix: prefix, cause: err})
833}
834
835type wrappedError struct {
836 prefix string

Callers 5

serveRecordEventsJSONMethod · 0.85
errorFromResponseFunction · 0.85
doProtobufRequestFunction · 0.85
doJSONRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected