Print warning for non-existing items

This commit is contained in:
Alexander Neumann 2017-09-09 21:12:41 +02:00
parent 5c75a98053
commit ea75509d6e

View file

@ -216,6 +216,7 @@ func filterExisting(items []string) (result []string, err error) {
for _, item := range items { for _, item := range items {
_, err := fs.Lstat(item) _, err := fs.Lstat(item)
if err != nil && os.IsNotExist(errors.Cause(err)) { if err != nil && os.IsNotExist(errors.Cause(err)) {
Warnf("%v does not exist, skipping\n", item)
continue continue
} }