mirror of
https://github.com/octoleo/restic.git
synced 2024-11-27 07:16:40 +00:00
forget: cleanup verbose output on snapshot deletion error
This commit is contained in:
parent
09587e6c08
commit
c9191ea72c
@ -276,8 +276,9 @@ func runForget(ctx context.Context, opts ForgetOptions, pruneOptions PruneOption
|
|||||||
err := restic.ParallelRemove(ctx, repo, removeSnIDs, restic.SnapshotFile, func(id restic.ID, err error) error {
|
err := restic.ParallelRemove(ctx, repo, removeSnIDs, restic.SnapshotFile, func(id restic.ID, err error) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
printer.E("unable to remove %v/%v from the repository\n", restic.SnapshotFile, id)
|
printer.E("unable to remove %v/%v from the repository\n", restic.SnapshotFile, id)
|
||||||
|
} else {
|
||||||
|
printer.VV("removed %v/%v\n", restic.SnapshotFile, id)
|
||||||
}
|
}
|
||||||
printer.VV("removed %v/%v\n", restic.SnapshotFile, id)
|
|
||||||
return nil
|
return nil
|
||||||
}, bar)
|
}, bar)
|
||||||
bar.Done()
|
bar.Done()
|
||||||
|
Loading…
Reference in New Issue
Block a user