Skip to content

Commit

Permalink
forget: cleanup verbose output on snapshot deletion error
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelEischer committed Apr 14, 2024
1 parent 09587e6 commit c9191ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/restic/cmd_forget.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
if err != nil {
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
}, bar)
bar.Done()
Expand Down

0 comments on commit c9191ea

Please sign in to comment.