cmd: added file path output before errors

This commit is contained in:
i582 2021-07-31 19:45:26 +03:00
parent 44bbff6073
commit 85b5d3ef36

View File

@ -168,10 +168,12 @@ func printerWorker(r <-chan result) {
_, _ = io.WriteString(os.Stderr, "==> ["+strconv.Itoa(counter)+"] "+res.path+"\n")
}
if *printErrors {
if *printErrors && len(res.errors) > 0 {
_, _ = io.WriteString(os.Stderr, "==> ["+strconv.Itoa(counter)+"] "+res.path+"\n")
for _, e := range res.errors {
_, _ = io.WriteString(os.Stderr, "==> "+e.String()+"\n")
}
_, _ = io.WriteString(os.Stderr, "\n")
}
if *printBack {