make file loading errors that happen late in compilation still fatal

This commit is contained in:
Brendan Hansknecht 2023-04-04 20:16:19 -07:00
parent 21d063da26
commit 8f4945f286
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
9 changed files with 189 additions and 114 deletions

View file

@ -136,7 +136,7 @@ pub fn compile_to_mono<'a, 'i, I: Iterator<Item = &'i str>>(
Severity::Warning => {
warnings.push(buf);
}
Severity::RuntimeError => {
Severity::Fatal | Severity::RuntimeError => {
errors.push(buf);
}
}
@ -154,7 +154,7 @@ pub fn compile_to_mono<'a, 'i, I: Iterator<Item = &'i str>>(
Severity::Warning => {
warnings.push(buf);
}
Severity::RuntimeError => {
Severity::Fatal | Severity::RuntimeError => {
errors.push(buf);
}
}