forked from TrueCloudLab/restic
Print warning for non-existing items
This commit is contained in:
parent
5c75a98053
commit
ea75509d6e
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue