mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
exit code 2 for warnings
This commit is contained in:
parent
3d0661db0c
commit
eec6d79248
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue