mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.builder: change exit code of v -check file.v
to 0, when file.v is clean from any errors.
This commit is contained in:
parent
aedb6b8e84
commit
aec016bb14
@ -439,8 +439,11 @@ fn (mut b Builder) print_warnings_and_errors() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
b.show_total_warns_and_errors_stats()
|
b.show_total_warns_and_errors_stats()
|
||||||
|
if b.nr_errors > 0 {
|
||||||
exit(1)
|
exit(1)
|
||||||
}
|
}
|
||||||
|
exit(0)
|
||||||
|
}
|
||||||
|
|
||||||
if b.pref.is_verbose && b.checker.nr_warnings > 1 {
|
if b.pref.is_verbose && b.checker.nr_warnings > 1 {
|
||||||
println('$b.checker.nr_warnings warnings')
|
println('$b.checker.nr_warnings warnings')
|
||||||
|
Loading…
Reference in New Issue
Block a user