WithStack chains source location information to an error if "err" is not nil.
(err error)
| 112 | |
| 113 | // WithStack chains source location information to an error if "err" is not nil. |
| 114 | func WithStack(err error) error { |
| 115 | if err == nil { |
| 116 | return nil |
| 117 | } |
| 118 | return newErr(err, "") |
| 119 | } |
| 120 | |
| 121 | func Join(errs ...error) error { |
| 122 | return errors.Join(errs...) |