mirror of
https://github.com/samuelncui/yatm.git
synced 2026-01-08 06:15:54 +00:00
13 lines
171 B
Go
13 lines
171 B
Go
package tools
|
|
|
|
import (
|
|
"github.com/hashicorp/go-multierror"
|
|
)
|
|
|
|
func AppendError(err, e error) error {
|
|
if err != nil {
|
|
return multierror.Append(err, e)
|
|
}
|
|
return e
|
|
}
|