2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-23 13:17:42 +00:00

check: remove output mangling workaround

This commit is contained in:
Michael Eischer 2024-05-25 21:29:18 +02:00
parent 939b537c80
commit 13127f3f6b

View File

@ -315,11 +315,7 @@ func runCheck(ctx context.Context, opts CheckOptions, gopts GlobalOptions, args
for err := range errChan {
errorsFound = true
if e, ok := err.(*checker.TreeError); ok {
var clean string
if stdoutCanUpdateStatus() {
clean = clearLine(0)
}
printer.E(clean+"error for tree %v:\n", e.ID.Str())
printer.E("error for tree %v:\n", e.ID.Str())
for _, treeErr := range e.Errors {
printer.E(" %v\n", treeErr)
}