mirror of
https://github.com/octoleo/restic.git
synced 2024-12-23 11:28:54 +00:00
Improve snapshot filter warning message
Include the root-cause why the snapshot prefix is ignored.
This commit is contained in:
parent
10b39d7591
commit
409e4936af
@ -31,7 +31,7 @@ func FindFilteredSnapshots(ctx context.Context, repo *repository.Repository, hos
|
|||||||
} else {
|
} else {
|
||||||
id, err = restic.FindSnapshot(ctx, repo, s)
|
id, err = restic.FindSnapshot(ctx, repo, s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Warnf("Ignoring %q, it is not a snapshot id\n", s)
|
Warnf("Ignoring %q: %v\n", s, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user