about summary refs log tree commit diff
path: root/tvix/eval/src/builtins/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/builtins/mod.rs')
-rw-r--r--tvix/eval/src/builtins/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tvix/eval/src/builtins/mod.rs b/tvix/eval/src/builtins/mod.rs
index c2618a4066f4..554fc9d7e329 100644
--- a/tvix/eval/src/builtins/mod.rs
+++ b/tvix/eval/src/builtins/mod.rs
@@ -135,6 +135,7 @@ mod pure_builtins {
     async fn builtin_base_name_of(co: GenCo, s: Value) -> Result<Value, ErrorKind> {
         let span = generators::request_span(&co).await;
         let s = match s {
+            val @ Value::Catchable(_) => return Ok(val),
             // it is important that builtins.baseNameOf does not
             // coerce paths into strings, since this will turn them
             // into store paths, and `builtins.baseNameOf