MCPcopy Create free account
hub / github.com/chain/txvm / Detail

Function Detail

errors/errors.go:115–118  ·  view source on GitHub ↗

Detail returns the detail message contained in err, if any. An error has a detail message if it was made by WithDetail or WithDetailf.

(err error)

Source from the content-addressed store, hash-verified

113// An error has a detail message if it was made by WithDetail
114// or WithDetailf.
115func Detail(err error) string {
116 wrapper, _ := err.(wrapperError)
117 return strings.Join(wrapper.detail, "; ")
118}
119
120// withData returns a new error that wraps err
121// as a chain error message containing v as

Callers 1

TestDetailFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestDetailFunction · 0.68