Join returns an error that wraps the given errors. Any nil error values are discarded. Join returns nil if errs contains no non-nil values. The error formats as the concatenation of the strings obtained by calling the Error method of each element of errs, with a newline between each string. A stack
(errs ...error)
| 208 | // by calling the Error method of each element of errs, with a newline |
| 209 | // between each string. A stack trace is also retained. |
| 210 | func Join(errs ...error) error { |
| 211 | return errutil.JoinWithDepth(1, errs...) |
| 212 | } |
| 213 | |
| 214 | // JoinWithDepth is like Join but the depth at which the call stack is |
| 215 | // captured can be specified. |
searching dependent graphs…