mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-22 03:22:30 +00:00
make file loading errors that happen late in compilation still fatal
This commit is contained in:
parent
21d063da26
commit
8f4945f286
9 changed files with 189 additions and 114 deletions
|
@ -6,6 +6,10 @@ pub mod can;
|
|||
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
||||
pub enum Severity {
|
||||
/// This should stop compilation in all cases.
|
||||
/// Due to delayed loading of ingested files, this is wanted behaviour over a runtime error.
|
||||
Fatal,
|
||||
|
||||
/// This will cause a runtime error if some code get srun
|
||||
/// (e.g. type mismatch, naming error)
|
||||
RuntimeError,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue