about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tvix/eval/src/errors.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/tvix/eval/src/errors.rs b/tvix/eval/src/errors.rs
index 14f6819862..3df51acb6c 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 {