mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
vfmt: print worker execution errors with -debug (#9238)
This commit is contained in:
parent
c554e0b33d
commit
141a6db16b
1 changed files with 4 additions and 1 deletions
|
@ -119,6 +119,9 @@ fn main() {
|
||||||
}
|
}
|
||||||
worker_result := os.execute(worker_cmd)
|
worker_result := os.execute(worker_cmd)
|
||||||
if worker_result.exit_code != 0 {
|
if worker_result.exit_code != 0 {
|
||||||
|
if foptions.is_debug {
|
||||||
|
eprintln(worker_result.output)
|
||||||
|
}
|
||||||
errors++
|
errors++
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -126,7 +129,7 @@ fn main() {
|
||||||
if worker_result.exit_code != 0 {
|
if worker_result.exit_code != 0 {
|
||||||
eprintln(worker_result.output)
|
eprintln(worker_result.output)
|
||||||
if worker_result.exit_code == 1 {
|
if worker_result.exit_code == 1 {
|
||||||
eprintln('vfmt error while formatting file: $file .')
|
eprintln('Internal vfmt error while formatting file: ${file}.')
|
||||||
}
|
}
|
||||||
errors++
|
errors++
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue