diff --git a/cmd/restic/cmd_check.go b/cmd/restic/cmd_check.go index 7fafe0ee9..be9dd5130 100644 --- a/cmd/restic/cmd_check.go +++ b/cmd/restic/cmd_check.go @@ -295,7 +295,11 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts GlobalOptions, args for err := range errChan { errorsFound = true if e, ok := err.(*checker.TreeError); ok { - Warnf("error for tree %v:\n", e.ID.Str()) + var clean string + if stdoutCanUpdateStatus() { + clean = clearLine(0) + } + Warnf(clean+"error for tree %v:\n", e.ID.Str()) for _, treeErr := range e.Errors { Warnf(" %v\n", treeErr) }