(err error)
| 2170 | } |
| 2171 | |
| 2172 | func buildErrorChainString(err error) string { |
| 2173 | if err == nil { |
| 2174 | return "" |
| 2175 | } |
| 2176 | |
| 2177 | e := errors.Unwrap(err) |
| 2178 | chain := fmt.Sprintf("%q", err.Error()) |
| 2179 | for e != nil { |
| 2180 | chain += fmt.Sprintf("\n\t%q", e.Error()) |
| 2181 | e = errors.Unwrap(e) |
| 2182 | } |
| 2183 | return chain |
| 2184 | } |
no test coverage detected