Stack returns the entire error stack, including the given error.
(err error)
| 90 | |
| 91 | // Stack returns the entire error stack, including the given error. |
| 92 | func Stack(err error) (stack []error) { |
| 93 | for ; err != nil; err = Cause(err) { |
| 94 | stack = append(stack, err) |
| 95 | } |
| 96 | return |
| 97 | } |