mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-17 16:11:01 -04:00
ab6c553e6b
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
9 lines
253 B
Go
9 lines
253 B
Go
package storage
|
|
|
|
import "fmt"
|
|
|
|
// pushError formats an error type given a path and an error
|
|
// and pushes it to a slice of errors
|
|
func pushError(errors []error, path string, err error) []error {
|
|
return append(errors, fmt.Errorf("%s: %s", path, err))
|
|
}
|