diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-30 18:04:08 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-30 18:49:19 +0200 |
| commit | 1ee1d078e2480ddd08d40915bc7a74a8352acff0 (patch) | |
| tree | 1e7ff367278a19fead3e404cf06d65bfb80a6cd9 /src/library/mod.rs | |
| parent | 42a27b48df427edf8dbb624c51551a90ecf2e7ea (diff) | |
Fatal errors
- Makes errors fatal, so that a phase is only reached when all previous phases were error-free
- Parsing still recovers and can produce multiple errors
- Evaluation fails fast and can thus produce only a single error (except for parse errors due to an import)
- The single error that could occur during execution is removed for now
- Removes Value::Error variant
Diffstat (limited to 'src/library/mod.rs')
| -rw-r--r-- | src/library/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/library/mod.rs b/src/library/mod.rs index ff2fb3e8..3591e742 100644 --- a/src/library/mod.rs +++ b/src/library/mod.rs @@ -17,6 +17,7 @@ use std::convert::TryFrom; use std::rc::Rc; use crate::color::{Color, RgbaColor}; +use crate::diag::TypResult; use crate::eval::{EvalContext, FuncArgs, Scope, Template, Type, Value}; use crate::exec::Exec; use crate::font::{FontFamily, FontStretch, FontStyle, FontWeight, VerticalFontMetric}; |
