mirror of
https://github.com/distribution/distribution
synced 2024-11-12 05:45:51 +01:00
cbcbcb02c5
This removes the old global walk function, and changes all the code to use the per-driver walk functions. Signed-off-by: Sargun Dhillon <sargun@sargun.me>
10 lines
253 B
Go
10 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))
|
|
}
|