exit code 2 for warnings

This commit is contained in:
Isaac Van Doren 2024-01-14 19:53:55 -06:00
parent 3d0661db0c
commit eec6d79248
No known key found for this signature in database
GPG key ID: CFA524CD470E5B94

View file

@ -18,8 +18,10 @@ impl Problems {
// 0 means no problems, 1 means errors, 2 means warnings
if self.errors > 0 {
1
} else if self.warnings > 0 {
2
} else {
self.warnings.min(1) as i32
0
}
}