2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-23 13:17:42 +00:00

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
} }