Skip to content

Commit aec016b

Browse files
committed
v.builder: change exit code of v -check file.v to 0, when file.v is clean from any errors.
1 parent aedb6b8 commit aec016b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

vlib/v/builder/builder.v

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,10 @@ fn (mut b Builder) print_warnings_and_errors() {
439439
}
440440

441441
b.show_total_warns_and_errors_stats()
442-
exit(1)
442+
if b.nr_errors > 0 {
443+
exit(1)
444+
}
445+
exit(0)
443446
}
444447

445448
if b.pref.is_verbose && b.checker.nr_warnings > 1 {

0 commit comments

Comments
 (0)