about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-02-13T07·58+0300
committerclbot <clbot@tvl.fyi>2023-02-13T16·21+0000
commit91a366af465aad00141df82200530ccf5da11339 (patch)
tree8645efceaf5ba737092e1ab0db9cd3ca51647927
parent3c68159b81f9f4f322f19251a30c26344505b66b (diff)
fix(tvix/eval): make fields of eval's Error type public r/5847
These should be inspectable by callers.

Change-Id: Ia9ef871aa63958d06066aaea61b2aecbd217369b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8089
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
-rw-r--r--tvix/eval/src/errors.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tvix/eval/src/errors.rs b/tvix/eval/src/errors.rs
index 8c0d6124201e..5000afed947f 100644
--- a/tvix/eval/src/errors.rs
+++ b/tvix/eval/src/errors.rs
@@ -257,9 +257,9 @@ impl From<toml::de::Error> for ErrorKind {
 
 #[derive(Clone, Debug)]
 pub struct Error {
-    kind: ErrorKind,
-    span: Span,
-    contexts: Vec<String>,
+    pub kind: ErrorKind,
+    pub span: Span,
+    pub contexts: Vec<String>,
 }
 
 impl Error {