MCPcopy
hub / github.com/expr-lang/expr / buildErrorChainString

Function buildErrorChainString

internal/testify/assert/assertions.go:2079–2091  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

2077}
2078
2079func buildErrorChainString(err error) string {
2080 if err == nil {
2081 return ""
2082 }
2083
2084 e := errors.Unwrap(err)
2085 chain := fmt.Sprintf("%q", err.Error())
2086 for e != nil {
2087 chain += fmt.Sprintf("\n\t%q", e.Error())
2088 e = errors.Unwrap(e)
2089 }
2090 return chain
2091}

Callers 3

ErrorIsFunction · 0.85
NotErrorIsFunction · 0.85
ErrorAsFunction · 0.85

Calls 3

UnwrapMethod · 0.80
SprintfMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…