From 141a6db16beb91e4de38dbbe9014a0bb99a46b50 Mon Sep 17 00:00:00 2001 From: Lukas Neubert Date: Wed, 10 Mar 2021 19:21:39 +0100 Subject: [PATCH] vfmt: print worker execution errors with -debug (#9238) --- cmd/tools/vfmt.v | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/tools/vfmt.v b/cmd/tools/vfmt.v index 1d10e5ea29..c7883db357 100644 --- a/cmd/tools/vfmt.v +++ b/cmd/tools/vfmt.v @@ -119,6 +119,9 @@ fn main() { } worker_result := os.execute(worker_cmd) if worker_result.exit_code != 0 { + if foptions.is_debug { + eprintln(worker_result.output) + } errors++ continue } @@ -126,7 +129,7 @@ fn main() { if worker_result.exit_code != 0 { eprintln(worker_result.output) if worker_result.exit_code == 1 { - eprintln('vfmt error while formatting file: $file .') + eprintln('Internal vfmt error while formatting file: ${file}.') } errors++ continue