MCPcopy Create free account
hub / github.com/juju/errors / Unwrap

Method Unwrap

errortypes.go:75–77  ·  view source on GitHub ↗

Unwrap an errWithType gives the underlying Err

()

Source from the content-addressed store, hash-verified

73
74// Unwrap an errWithType gives the underlying Err
75func (e *errWithType) Unwrap() error {
76 return e.error
77}
78
79func wrapErrorWithMsg(err error, msg string) error {
80 if err == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected