about summary refs log tree commit diff
path: root/tvix/eval/src/errors.rs
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-08-04T13·43+0300
committertazjin <tazjin@tvl.su>2022-08-12T12·39+0000
commit892168833423a084a06f2be535080e61aa8ca134 (patch)
treefbb590f2ed16a93d7afe35e2e0598fb919507369 /tvix/eval/src/errors.rs
parenta9b2157fba18e9672e08c90d870cd1a5dfd8d95d (diff)
chore(tvix/eval): bootstrap some evaluator boilerplate r/4401
Change-Id: I7770a20948d18a8506c2418dea21202aa21a6ddc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6064
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'tvix/eval/src/errors.rs')
-rw-r--r--tvix/eval/src/errors.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tvix/eval/src/errors.rs b/tvix/eval/src/errors.rs
new file mode 100644
index 0000000000..14f6819862
--- /dev/null
+++ b/tvix/eval/src/errors.rs
@@ -0,0 +1,12 @@
+use std::fmt::Display;
+
+#[derive(Debug)]
+pub struct Error {}
+
+impl Display for Error {
+    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+        writeln!(f, "error")
+    }
+}
+
+pub type EvalResult<T> = Result<T, Error>;