about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
Diffstat (limited to 'tvix')
-rw-r--r--tvix/eval/src/errors.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tvix/eval/src/errors.rs b/tvix/eval/src/errors.rs
index 543ae7d41ea5..1c0d71f6188f 100644
--- a/tvix/eval/src/errors.rs
+++ b/tvix/eval/src/errors.rs
@@ -3,6 +3,7 @@ use crate::value::CoercionKind;
 use std::io;
 use std::path::PathBuf;
 use std::rc::Rc;
+use std::str::Utf8Error;
 use std::sync::Arc;
 use std::{fmt::Display, num::ParseIntError};
 
@@ -140,6 +141,12 @@ impl From<ParseIntError> for ErrorKind {
     }
 }
 
+impl From<Utf8Error> for ErrorKind {
+    fn from(_: Utf8Error) -> Self {
+        Self::NotImplemented("FromUtf8Error not handled: https://b.tvl.fyi/issues/189")
+    }
+}
+
 /// Implementation used if errors occur while forcing thunks (which
 /// can potentially be threaded through a few contexts, i.e. nested
 /// thunks).