diff options
Diffstat (limited to 'tvix/eval/src')
-rw-r--r-- | tvix/eval/src/errors.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tvix/eval/src/errors.rs b/tvix/eval/src/errors.rs index 14f6819862b1..3df51acb6ca6 100644 --- a/tvix/eval/src/errors.rs +++ b/tvix/eval/src/errors.rs @@ -1,7 +1,12 @@ use std::fmt::Display; #[derive(Debug)] -pub struct Error {} +pub enum Error { + TypeError { + expected: &'static str, + actual: &'static str, + }, +} impl Display for Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |