We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-diff
1 parent 4bda28b commit 52dfef1Copy full SHA for 52dfef1
cmd/tools/vfmt.v
@@ -145,7 +145,9 @@ fn main() {
145
}
146
ecode := if has_internal_error { 5 } else { 0 }
147
if errors > 0 {
148
- eprintln('Encountered a total of: ${errors} formatting errors.')
+ if !foptions.is_diff {
149
+ eprintln('Encountered a total of: ${errors} formatting errors.')
150
+ }
151
match true {
152
foptions.is_noerror { exit(0 + ecode) }
153
foptions.is_verify { exit(1 + ecode) }
@@ -245,7 +247,7 @@ fn (mut foptions FormatOptions) post_process_file(file string, formatted_file_pa
245
247
return
246
248
249
println(diff.compare_files(file, formatted_file_path)!)
- return
250
+ return error('')
251
252
if foptions.is_verify {
253
if !is_formatted_different {
0 commit comments