cmd: added file path output before errors
This commit is contained in:
parent
44bbff6073
commit
85b5d3ef36
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user