elvish/pkg/errutil/errutil.go
Qi Xiao 3847235a14 pkg/diag: Split Errors into another package.
The Errors function is not related to diag.Error, so keeping it in the same
package is confusing.

Also unexport the MultiError type. This allows its Error method to be
simplified, as it can assume that it always contains at least 2 errors.
2022-11-29 22:13:02 +00:00

3 lines
76 B
Go

// Package errutil contains common error-related utilities.
package errutil